Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

promise-seq

bcherny46CC-BY-4.04.0.1TypeScript support: included

Evaluate promises in sequence

lazy, promise, sequential, sequence, serial, sync, synchronous, synchronize, typescript, typing, typed

readme

promise-seq

Build Status npm cc4

evaluate promises in sequence

install

# Using Yarn:
yarn add promise-seq

# Or, using NPM:
npm install promise-seq --save

usage

import { seq } from 'promise-seq'

seq(
  () => new Promise( ... ),
  () => new Promise( ... ),
  () => new Promise( ... )
)
.then(
  res => ...,
  err => ...
)

test

npm test

tdd

npm test -- --watch