Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nhz-io/stream-map-series
- Owner: nhz-io
- License: mit
- Created: 2016-09-16T15:41:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-16T15:41:43.000Z (over 8 years ago)
- Last Synced: 2024-10-31T17:58:10.144Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```