Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakeburden/file-up
Upload files like you would with curl --upload-file
https://github.com/jakeburden/file-up
Last synced: 1 day ago
JSON representation
Upload files like you would with curl --upload-file
- Host: GitHub
- URL: https://github.com/jakeburden/file-up
- Owner: jakeburden
- Created: 2016-02-21T03:02:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T05:33:07.000Z (about 8 years ago)
- Last Synced: 2024-08-08T15:46:39.591Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
Awesome Lists containing this project
README
## file-up
[![build status](http://img.shields.io/travis/jekrb/file-up.svg?style=flat)](http://travis-ci.org/jekrb/file-up)
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
Upload files like you would with [curl --upload-file](https://curl.haxx.se/docs/manpage.html#-T) (almost).
```
npm install file-up -g
```### Usage
``` bash
file-up file.txt example.com
```### api
`file-up` can be used as a command that takes a filename and url as arguments, or you can pass it optional parameters.
#### `-T` or `--upload-file`
specifies the file to upload#### `--url`
specifies the url (default `localhost`)#### `-p` or `--port`
specifies the port (default `80`)#### `-m` or `--method`
specifies the method (default `PUT`)### Notes
You can specify one -T for each URL on the command line. Each -T + URL pair specifies what to upload and to where.
#### Todos
1. Support URL globbing (like curl).
2. Write better test.
3. Probably lots of other things. I haven't had time to find edge cases.### License
MIT