promise-seq

Evaluate promises in sequence


Keywords
lazy, promise, sequential, sequence, serial, sync, synchronous, synchronize, typescript, typing, typed, async, functional-programming
License
CC-BY-4.0
Install
npm install promise-seq@3.0.0

Documentation

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