1.0.0 • Published 6 years ago

hl-stream v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

NPM version Build Status Dependency Status Coverage percentage

hl-stream

High level streams library based on native node transforms inspired by highland and ramda.

The main focus is to provide a functional interface using the native Node streams.

For more information see manual/Usage and manual/Documentation

Getting Started

To install:

npm i --save hl-stream

In your project:

const _ = require('hl-stream')
const R = require('ramda')
const numberStream = require('./some/readable/numbersStream')

_.(numberStream)
.map(R.add(1))
.map(R.multiply(2))
.filter(R.gt(20))
.reduce(0, R.add)
.get()
.on('data', console.log)

License

MIT © Maurice Domínguez