stream-functions
v1.0.0
Published
Core function (map, filter, flatten, buffer, promise-map) to use with streams
Maintainers
Readme
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))