0.1.3 • Published 9 years ago

mumba-stream v0.1.3

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
9 years ago

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.

List of all contributors

License

Apache 2.0


© 2016 Mumba Pty Ltd. All rights reserved.

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago