Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nhz-io/stream-map-series

Map list in series asynchronously
https://github.com/nhz-io/stream-map-series

Last synced: 3 days ago
JSON representation

Map list in series asynchronously

Awesome Lists containing this project

README

        

# stream-map-series

Map every item in list using async function in series and return a promise

## Usage
```
const map = require('stream-map-series')

map(1,2,3).series((data, cb) => {
console.log(data)
cb(null, 'Done with:' + data)
})
.then(res => console.log(res))
.catch(err => throw err)
```