Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Pipe-io License NPM version Dependency Status Build Status Coverage Status

Pipe streams and handle events.

Install

npm i pipe-io

API

pipe

Create pipe between streams and adds callback wich would be called once whenever everything is done, or error occures.

const fs = require('fs');

const pipe = require('pipe-io');
const tryToCatch = require('try-to-catch');

const NAME = 'README.md';
const NAME2 = 'README2.md';
const readStream = fs.createReadStream(NAME);
const writeStream = fs.createWriteStream(NAME2);

const [e] = await tryToCatch(pipe, [readStream, writeStream]);

Related

  • Pullout - pull out data from stream

License

MIT

You can’t perform that action at this time.