mumba-stream
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

/mumba-stream/

    Package Sidebar

    Install

    npm i mumba-stream

    Weekly Downloads

    4

    Version

    0.1.3

    License

    Apache-2.0

    Last publish

    Collaborators

    • arvin.domingo
    • dennis.barbamumba
    • mumba.cloud
    • carl-oehme-mumba
    • kennbaker