Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filetran

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filetran

Simple command-line file transfer tool

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

filetran

This is a very simple program to transfer a single file from one machine to another. I've used this while playing with docker containers and transfering some config files to my nexus 7 running Arch. This was a quick and easy way to use node to solve a problem I had ;)

Install

npm install filetran -g

Usage

Run the program in one of two modes:

ModeDescription
ServerSetup to send or receive a file.
ClientConnect to a server to send/recieve a file

filetran <cmd> [opts] <file>

cmd
  • send: send a file to another filetran process.
  • receive: receive a file from another filetran process.
opts
  • port, -p, --port: The port to connect to or to listen on.
  • host, -h, --host: The host to connect to.
    • The host option can be used on either send or receive. (But not both at once.)
    • If the host is not specified, it acts as a server. (Run this first).
    • If a host is specified, it acts as a client. (Run this second).
file
  • The filename to read from or write to. (The filenames do not need to match.)

Example

You should start the server first, the client needs to connect to this. To start a server, just don't specify the host.

Send:
filetran receive -p 8790 test-file

The server is now listening on port 8790, and will write what it receives to a file called test-file.

Receive:
filetran send --host new-host --port 8790 test-file

The client is now connecting to port 8790, and will send the contents of test-file to the server.

License

MIT

Keywords

FAQs

Package last updated on 30 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc