2.0.1 • Published 7 months ago

stream-wormhole v2.0.1

Weekly downloads
66,900
License
MIT
Repository
github
Last release
7 months ago

stream-wormhole

NPM version CI Test coverage npm download

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

MIT

Contributors

fengmk2denghongcaidead-horse

This project follows the git-contributor spec, auto updated at Sat Sep 16 2023 14:11:38 GMT+0800.