npm module that creating stream to read/write from/to a URI.
Supported protocol:
Protocol | Operation |
---|---|
HTTP | Read |
HTTPS | Read |
S3 | Read/Write |
FTP | Read/Write |
FILE | Read/Write |
$ npm install nstkhr/get-stream
const uriStream = require('uri-stream');
uriStream
.createReadStream('file:///path/to/file')
.pipe(
uriStream
.createWriteStream('s3://bucket-name/path/to/object'
));
MIT