Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stream-wormhole

node-modules1.1mMIT2.0.1TypeScript support: included

Pipe ReadStream to a wormhole

stream-wormhole, wormhole, stream

readme

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


fengmk2


denghongcai


dead-horse

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

changelog

Changelog

2.0.1 (2023-09-17)

Bug Fixes

  • use types instead of typings (30b24a5)

2.0.0 (2023-09-16)

⚠ BREAKING CHANGES

  • Drop Node.js < 16 support

Features

1.1.1 / 2018-08-23

fixes

1.1.0 / 2018-08-15

features

fixes

1.0.4 / 2018-07-17

fixes

1.0.3 / 2016-07-25

  • chore: remove black-hole dep (#1)

1.0.2 / 2016-07-15

  • fix: black-hole-stream should be deps

1.0.1 / 2016-07-15

  • fix: should not throw error by default

1.0.0 / 2016-07-15

  • init version