Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 710 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 710 Bytes

Build Status

NAME

await-map-stream - Lightweight stream mapper

SYNOPSIS

Common usage:

const awaitStream = require('await-map-stream');
let doubler = awaitStream(data => Promise.resolve(data * 2));
stream.pipe(doubler);

let mapper = awaitStream(async data => await mongodb.findOne(data.id));
request(url).pipe(JSONStream.parse('results.*')).pipe(mapper);

INSTALL

nodejs/npm

npm install await-map-stream

AUTHOR

maktwin (Maksym Panchokha)

BUGS

Please report any bugs or feature requests to Github https://github.com/maktwin/await-map-stream