1.0.0 • Published 6 years ago

stream-functions v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Helper functions for streams in node js.

map

import { map } from 'stream-function'
somestream.pipe(map(somefunction))

filter

import { filter } from 'stream-function'
somestream.pipe(filter(somefunction))

flatten

import { flatten } from 'stream-function'
somestream.pipe(flatten())

buffer

import { buffer } from 'stream-function'
somestream.pipe(buffer(buffersize))

promiseMap

import { map } from 'stream-function'
somestream.pipe(promiseMap(somepromisefunction))