$ npm install stream-wormhole
Pipe ReadStream
/ Readable
to a wormhole.
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));
fengmk2 |
denghongcai |
dead-horse |
---|
This project follows the git-contributor spec, auto updated at Sat Sep 16 2023 14:11:38 GMT+0800
.
© 2010 - cnpmjs.org x YWFE | Home | YWFE