# promisedotseq

> Provides Promise.seq() functionality in a way that doesn't suck.

Latest version **0.1.4** (published 2017-04-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install promisedotseq
pnpm add promisedotseq
yarn add promisedotseq
bun add promisedotseq
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2017-04-22 |
| First published | 2017-04-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | coleji |

## Links

- npm: https://www.npmjs.com/package/promisedotseq
- Repository: https://github.com/coleji/promisedotseq
- Homepage: https://github.com/coleji/promisedotseq#readme
- Issues: https://github.com/coleji/promisedotseq/issues
- npm.io page: https://npm.io/package/promisedotseq

## Recent versions

- 0.1.4 (latest) — 2017-04-22
- 0.1.3 — 2017-04-22
- 0.1.2 — 2017-04-22
- 0.1.1 — 2017-04-22
- 0.1.0 — 2017-04-22

## README

Just like all the millions of other packages on npm that add Promise.seq() functionality, except it does not instantiate any promise in the list until the prior promise successfully resolves, and it fails fast as soon as any promise rejects.  Maybe someone else made a package that works like that but I tried the first 4 that came up and none of them were entirely what I was hoping for.

```js
var promiseSequence = require("promisedotseq");

var promiseFactories = [
	() => new Promise((resolve, reject) => setTimeout(() => {
		console.log("1!");
		resolve(1);
	}, 5000)),
	() => new Promise((resolve, reject) => setTimeout(() => {
		console.log("2!");
		reject(2);
	}, 5000)),
	() => new Promise((resolve, reject) => setTimeout(() => {
		console.log("3!");
		resolve(3);
	}, 5000))
];

promiseSequence(promiseFactories).then(resolved => {
	console.log(resolved)
}, rejected => {
	console.log(rejected)
})
```

---
_Source: https://npm.io/package/promisedotseq · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
