JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 311788
  • Score
    100M100P100Q174197F
  • License MIT

Pipe ReadStream to a wormhole

Package Exports

  • stream-wormhole

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stream-wormhole) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stream-wormhole

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Pipe ReadStream to a wormhole.

Usage

const sendToWormhole = require('stream-wormhole');
const fs = require('fs');

const readStream = fs.createReadStream(__filename);

// ignore all error by default
sendToWormhole(readStream, true)
  .then(() => console.log('done'));

// throw error
sendToWormhole(readStream, true)
  .then(() => console.log('done'))
  .catch(err => console.error(err));

License

MIT