stream-wormhole

Pipe ReadStream to a wormhole

MIT 8 个版本
安装
npm install stream-wormhole
yarn add stream-wormhole
pnpm add stream-wormhole
bun add stream-wormhole
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.

版本列表
2.0.1 2023-09-17
2.0.0 2023-09-16
1.1.0 2018-08-15
1.0.4 2018-07-17
1.0.3 2016-07-25
1.0.2 2016-07-15
1.0.1 2016-07-15
1.0.0 2016-07-15