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
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));