Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaer/promiseser
https://github.com/avaer/promiseser
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avaer/promiseser
- Owner: avaer
- Created: 2017-09-22T14:39:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T15:11:33.000Z (over 7 years ago)
- Last Synced: 2024-05-01T13:59:44.561Z (8 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Serialized promises, no dependencies or other baggage. Catches errors and returns results in the way you expect.
#### Usage
```
const promiseser = require('.');
const promiseFns = Array(15).fill().map((_, i) => () => new Promise((accept, reject) => {
setTimeout(() => {
console.log(i);accept(i);
});
}));
promiseser(promiseFns)
.then(results => {
console.log(results);
});
```