Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zalari/tus-client
tus.io compatible client module for node, for uploading files
https://github.com/zalari/tus-client
Last synced: 2 months ago
JSON representation
tus.io compatible client module for node, for uploading files
- Host: GitHub
- URL: https://github.com/zalari/tus-client
- Owner: zalari
- License: other
- Created: 2014-07-16T20:15:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-16T20:37:22.000Z (over 10 years ago)
- Last Synced: 2024-03-15T04:02:44.524Z (10 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tus-server
[TUS Protocol 0.2.2](http://www.tus.io/protocols/resumable-upload.html) Client implementation in nodejs.Right now it is a heavy work in progress and it does not claim to be compatible to the tus.io protocol (yet). But stay tuned!
## Configuration
edit config.json
```js
{
"port":5000,
"prefixPath":"/upload/", //prefix for URL, where the service is waiting
"fileUploadPath":"files", //path to dir, where files are stored
"serverString":"tus-server", //Server-Agent :)
"logDir": "logs", //Winston-Options...
"logRotateSize": 10485760,
"logLevel": "info",
"host":"127.0.0.1" //Address, that the server should bind to
}
```
- Allowed [log levels](https://github.com/flatiron/winston#using-logging-levels): debug, info, warn, error
- LogRotateSize: 10MB default## Install
```
npm install
```## Examples
tus-client comes with a command-line based client tool:
```
tus_upload.js file uploadURI [offset]
```
The uploadURI *must* end with a slash!## Usage
Have a look at (tus_upload.js) to see how to use the module.## License
[MIT License](LICENSE.md).