Upload files like you would with curl --upload-file (almost).
npm install file-up -g
file-up file.txt example.com
file-up
can be used as a command that takes a filename and url as arguments, or you can pass it optional parameters.
specifies the file to upload
specifies the url (default localhost
)
specifies the port (default 80
)
specifies the method (default PUT
)
You can specify one -T for each URL on the command line. Each -T + URL pair specifies what to upload and to where.
- Support URL globbing (like curl).
- Write better test.
- Probably lots of other things. I haven't had time to find edge cases.
MIT