# promise-one-at-a-time

> Run a series of functions that return promises, one at a time

Latest version **1.0.1** (published 2015-10-20) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install promise-one-at-a-time
pnpm add promise-one-at-a-time
yarn add promise-one-at-a-time
bun add promise-one-at-a-time
```

## 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.1 |
| Published | 2015-10-20 |
| First published | 2015-10-20 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Phillips |
| Maintainers | matthewp |
| Keywords | Promise |

## Links

- npm: https://www.npmjs.com/package/promise-one-at-a-time
- Repository: https://github.com/matthewp/one-at-a-time
- Issues: https://github.com/matthewp/one-at-a-time/issues
- npm.io page: https://npm.io/package/promise-one-at-a-time

## 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.1 (latest) — 2015-10-20
- 1.0.0 — 2015-10-20

## README

[![Build Status](https://travis-ci.org/matthewp/one-at-a-time.svg?branch=master)](https://travis-ci.org/matthewp/one-at-a-time)
[![npm version](https://badge.fury.io/js/promise-one-at-a-time.svg)](http://badge.fury.io/js/promise-one-at-a-time)

# promise-one-at-a-time

Run promise-creating functions one at a time.

## Install

```shell
npm install promise-one-at-a-time --save
```

## Use

Pass in an array of functions that return promises. They will be ran one at a time and the last value will be returned.

```js
var oneAtATime = require("promise-one-at-a-time");

var fns = [
  function(){
    return new Promise(function(resolve){
      resolve();
    });
  },
  function(){
    return new Promise(function(resolve){
      resolve("works");
    });
  }
];

oneAtATime(fns).then(function(val){
  // val === "works"
});
```

## License

BSD 2 Clause

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