stream-wormhole
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i stream-wormhole

    Weekly Downloads

    165,004

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    14.8 kB

    Total Files

    10

    Last publish

    Collaborators

    • dead_horse
    • fengmk2