0.1.0 • Published 10 years ago

iostreams-file v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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