stream-wormhole
Pipe ReadStream to a wormhole
Last updated 2 years ago by fengmk2 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stream-wormhole 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

6 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |