iostreams-https
v0.1.3
Published
HTTPS stream provider for iostreams
Downloads
15
Maintainers
Readme
iostreams-https
Bootstrap stream provider for iostreams
Install
$ npm install iostreams iostreams-https
Usage
var iostreams = require('iostreams');
iostreams.use(require('iostreams-https'));
// Getting an input stream
iostreams.getInputStream('https://bensbit.co.uk/ben/lolcat.png', function(err, inputStream) {
});
// Getting an output stream
iostreams.getOutputStream('https://bensbit.co.uk/api/upload/lolcat.png', function(err, outputStream) {
});
// Getting an input and output stream
iostrams.getInputAndOutputStream(
'https://inputpath',
'https://outputpath',
function(err, inputStream, outputStream) {
intputStream.pipe(outputStream);
}
);
Licence
MIT