node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

iostreams-http

iostreams-http

Bootstrap stream provider for iostreams

Build Status Coverage Status Dependency Status

Install

$ npm install iostreams iostreams-http

Usage

var iostreams = require('iostreams');
 
iostreams.use(require('iostreams-http'));
 
// Getting an input stream 
iostreams.getInputStream('http://bensbit.co.uk/lolcat.png', function(err, inputStream) {
 
});
 
// Getting an output stream 
iostreams.getOutputStream('http://bensbit.co.uk/api/upload/lolcat2.png', function(err, outputStream) {
 
});
 
// Getting an input and output stream 
iostrams.getInputAndOutputStream(
  'http://inputpath',
  'http://outputpath',
  function(err, inputStream, outputStream) {
    intputStream.pipe(outputStream);
  }
);

Licence

MIT