Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bcherny/promise-seq
lazy-execute promises in sequence
https://github.com/bcherny/promise-seq
async functional-programming typescript
Last synced: 29 days ago
JSON representation
lazy-execute promises in sequence
- Host: GitHub
- URL: https://github.com/bcherny/promise-seq
- Owner: bcherny
- Created: 2015-07-20T06:13:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-10T02:27:42.000Z (about 7 years ago)
- Last Synced: 2024-10-07T17:43:44.555Z (about 1 month ago)
- Topics: async, functional-programming, typescript
- Language: TypeScript
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# promise-seq
[![Build Status][build]](https://circleci.com/gh/bcherny/promise-seq) [![npm]](https://www.npmjs.com/package/promise-seq) [![cc4]](https://creativecommons.org/licenses/by/4.0/)
[build]: https://img.shields.io/circleci/project/bcherny/promise-seq.svg?branch=master&style=flat-square
[npm]: https://img.shields.io/npm/v/promise-seq.svg?style=flat-square
[cc4]: https://img.shields.io/npm/l/promise-seq.svg?style=flat-square> evaluate promises in sequence
## install
```sh
# Using Yarn:
yarn add promise-seq# Or, using NPM:
npm install promise-seq --save
```## usage
```js
import { seq } from 'promise-seq'seq(
() => new Promise( ... ),
() => new Promise( ... ),
() => new Promise( ... )
)
.then(
res => ...,
err => ...
)
```## test
```sh
npm test
```## tdd
```sh
npm test -- --watch
```