iostreams-file

File stream provider for iostreams

iostreams-file

File stream provider for iostreams

$ npm install iostreams iostreams-file
var iostreams = require('iostreams');

iostreams.use(require('iostreams-file'));

// Getting an input stream
iostreams.getInputStream('file://home/ben/lolcat.png', function(err, inputStream) {

});

// Getting an output stream
iostreams.getOutputStream('file://home/ben/lolcat.png', function(err, outputStream) {

});

// Getting an input and output stream
iostrams.getInputAndOutputStream(
  'file://inputpath',
  'file://outputpath',
  function(err, inputStream, outputStream) {
    intputStream.pipe(outputStream);
  }
);

MIT