dx
v1.1.5
Published
This is a file transfer tool written in Node.js and built using WebRTC.
Maintainers
Readme
dx
This is a command-line file transfer tool written in node.js.
Installation
# node version >= 20
# node-pre-gyp required
npm install --global dxUsage
Sending Files
Using the dx send command to send files. There are several ways to specify the transfer code:
- Using the
DX_CODEenvironment variable:
export DX_CODE=020-9255-896 && dx send /path/to/name- Directly specifying with the
--codeparameter:
dx send /path/to/name --code 020-9255-896- Not specifying a transfer code (auto-generated):
dx send /path/to/name- If both the
DX_CODEenvironment variable and the--codeparameter are set, the--codeparameter will overrideDX_CODE. - If neither is set, dx will automatically generate a random transfer code.
Receiving Files
To receive files, use the dx receive command and specify the transfer code:
dx receive --code 020-9255-896The sender uses the DX_CODE method, and the receiver can use either DX_CODE or --code to receive.
export DX_CODE=020-9255-896 && dx receive
# or
dx receive --code 020-9255-896Notes
Dx server is only used for signaling and does not relay data. Your file data is transferred directly between the two terminals.
