Description
trzsz.js is the JavaScript version of trzsz, a file transfer tool that works inside terminal sessions, similar to lrzsz (rz and sz). It adds trz and tsz style uploads and downloads to web SSH terminals, webshells and Electron-based terminal apps. The library is installed as a module and runs in Node.js or in a web browser. For each connection you create a TrzszFilter, pass the server output and the user input through it, and tell it the terminal width so it can draw a progress bar. In Node.js you supply the file choosing functions, while in the browser they are not needed. Users can drag files or folders into the terminal to upload them. A TrzszAddon wraps the filter for xterm, so an existing xterm-addon-attach setup only needs AttachAddon swapped out. The repository includes examples for a browser web shell, an Electron terminal app and the xterm addon, and it covers remote servers that run a Windows shell such as cmd or PowerShell.…
Highlights
- Upload and download files inside web SSH terminals
- Works in Node.js and in the browser
- Drag-and-drop upload of files and folders
- TrzszAddon wrapper for xterm
- Electron terminal app example
- Supports remote Windows shells such as cmd and PowerShell
Ratings & Reviews
No ratings yet
Be the first to rate Trzsz.js.
People also visit
Trzsz.js FAQ
What is trzsz.js?
A JavaScript library that adds trz and tsz file transfer, a protocol similar to lrzsz, to web-based and Electron terminals.
How does it fit into an existing terminal?
Create a TrzszFilter for each connection and pass server output and user input through it. For xterm-based setups, TrzszAddon replaces AttachAddon.
Does it work in a browser?
Yes. The repository has a browser web shell example. In the browser the file chooser functions are ignored, while in Node.js they are required.
Does it work with Windows servers?
The README covers remote servers that run a Windows shell such as cmd or PowerShell as a special case.
Where can I get help?
Open an issue on GitHub or email the author. The author also points to a QQ group for questions.
What are the best Trzsz.js alternatives?
Popular alternatives to Trzsz.js include Trzsz SSH, Terminal7 and TSW. See all Trzsz.js alternatives

