# promisequance

> Sequential es2015 (es6) promise executor

Latest version **1.1.2** (published 2015-11-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2015-11-24 |
| First published | 2015-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ilia Idakiev |
| Maintainers | rampage |
| Keywords | es6, es2015, promise, promises, sequance, sequential, series, serial, promiseq |

## Links

- npm: https://www.npmjs.com/package/promisequance
- Repository: https://github.com/IliaIdakiev/promiseq
- Homepage: https://github.com/IliaIdakiev/promiseq#readme
- Issues: https://github.com/IliaIdakiev/promiseq/issues
- npm.io page: https://npm.io/package/promisequance

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2015-11-24
- 1.1.1 — 2015-11-24
- 1.1.0 — 2015-11-24
- 1.0.3 — 2015-11-20
- 1.0.2 — 2015-11-20
- 1.0.1 — 2015-11-12
- 1.0.0 — 2015-11-12

## README

#Sequential promise executor for ES2015

Module for executing promises in sequense.

####Installing:
```
npm install promisequance
```

####Usage:
```javascript
var promiseq = require('promisequance');

function one(data) {
    return new Promise(function(resolve, reject) {
        //data = { value: 200 }
        setTimeout(function() {
            resolve('1');
        },1000);
    });
}

function two(data, prevValue) {
    return new Promise(function(resolve, reject) {
        //prevValue: 1
        //data = { value: 200 }
        setTimeout(function() {
            resolve('2');
        },1000);
    });
}
var someData = {
    value: 200
};

promiseq([one, two], someData).then(function(values) {
    console.log(values.results[0]) // '1'
    console.log(values.results[1]) // '2'
    console.log(values.data.value) // 200
});
```

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