0.0.3 • Published 7 years ago

promiseser v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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);
  });