Core function (map, filter, flatten, buffer, promise-map) to use with streams
npm install stream-functions```
import { map } from 'stream-function'
somestream.pipe(map(somefunction))
``
import { filter } from 'stream-function'
somestream.pipe(filter(somefunction))
``
import { flatten } from 'stream-function'
somestream.pipe(flatten())
``
import { buffer } from 'stream-function'
somestream.pipe(buffer(buffersize))
```
import { map } from 'stream-function'
somestream.pipe(promiseMap(somepromisefunction))