iostreams-file

0.1.0 • Public • Published

iostreams-file

File stream provider for iostreams

Install

$ npm install iostreams iostreams-file

Usage

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);
  }
);

Licence

MIT

Package Sidebar

Install

npm i iostreams-file

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • bencevans