Pipe streams and handle events.
npm i pipe-io --save
Create pipe between streams and adds callback wich would be called once whenever everything is done, or error occures.
const pipe = ;const fs = ;const NAME = 'README.md';const NAME2 = 'README2.md';const readStream = fs;const writeStream = fs;;
node.js environments that not fully supports
pipe could be used with:
var pipe = ;