mumba-stream
v0.1.3
Published
Stream helper functions for Node.js.
Downloads
1
Keywords
Readme
Mumba Stream
Description
Stream definitions.
Installation
$ npm install --save mumba-stream
Map example
map
provides a way for mapping functions to reject or throw without killing the stream.
import {map} from 'mumba-stream'
// ...
return new Promise((resolve, reject) => {
createSomeStream()
.on('error', reject)
.pipe(map((data: any) => someFunction(data)))
.on('fail', console.error)
.on('finish', () => resolve());
})
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
People
The original author of Mumba WAMP is Andrew Eddie.
License
© 2016 Mumba Pty Ltd. All rights reserved.