stream-wormhole
v2.0.1
Published
Pipe ReadStream to a wormhole
Downloads
1,115,624
Readme
stream-wormhole
Pipe ReadStream
/ Readable
to a wormhole.
Usage
import sendToWormhole from 'stream-wormhole';
import fs from 'node:fs';
const readStream = fs.createReadStream(__filename);
// ignore all error by default
sendToWormhole(readStream)
.then(() => console.log('done'));
// throw error
sendToWormhole(readStream, true)
.then(() => console.log('done'))
.catch(err => console.error(err));
License
Contributors
|fengmk2|denghongcai|dead-horse| | :---: | :---: | :---: |
This project follows the git-contributor spec, auto updated at Sat Sep 16 2023 14:11:38 GMT+0800
.