# sequential-map

> sequential processing of data through a promise yielding function

Latest version **1.0.2** (published 2017-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install sequential-map
pnpm add sequential-map
yarn add sequential-map
bun add sequential-map
```

## 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.0.2 |
| Published | 2017-04-18 |
| First published | 2017-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | rogerbf |
| Maintainers | rogerbf |
| Keywords | Promise, promises, series, sequence, map, series |

## Links

- npm: https://www.npmjs.com/package/sequential-map
- Repository: https://github.com/rogerbf/sequential-map
- Homepage: https://github.com/rogerbf/sequential-map#readme
- Issues: https://github.com/rogerbf/sequential-map/issues
- npm.io page: https://npm.io/package/sequential-map

## 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.0.2 (latest) — 2017-04-18
- 1.0.1 — 2017-02-06
- 1.0.0 — 2017-02-06

## README

# sequential-map

Resolves to a new array with the result of calling a provided promise-returning function with every element in a provided array sequentially.

## usage

```javascript
const sequence = require(`sequential-map`)

// Will resolve after ~4 seconds
sequence(
  message => new Promise(
    resolve => setTimeout(
      resolve.bind(null, message),
      1000
    )
  ),
  [ `they`, `call`, `me`, `Hiphopopotamus` ]
)
.then(console.log)
.catch(console.error)
// [ `they`, `call`, `me`, `Hiphopopotamus` ]
```

## api

### `sequence(fn[,values][,PromiseImplementation])`

- `fn` map function
- `values` &lt;Array&gt; values to map over
- `PromiseImplementation` override the global Promise object

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