Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    iostreams-filepublic

    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

    install

    npm i iostreams-file

    Downloadsweekly downloads

    2

    version

    0.1.0

    license

    MIT

    homepage

    github.com

    last publish

    collaborators

    • avatar