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

maktwin/await-map-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

lightweight stream mapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published