# sf-promise-gateway

> Soundfile.io Promise Batch Processing Gateway

Latest version **0.9.0** (published 2017-05-10) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install sf-promise-gateway
pnpm add sf-promise-gateway
yarn add sf-promise-gateway
bun add sf-promise-gateway
```

## 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.9.0 |
| Published | 2017-05-10 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matej Drzik |
| Maintainers | soundfile |
| Keywords | promise, batch, soundfile |

## Links

- npm: https://www.npmjs.com/package/sf-promise-gateway
- Repository: https://github.com/wirrareka/sf-promise-gateway
- Homepage: https://github.com/wirrareka/sf-promise-gateway#readme
- Issues: https://github.com/wirrareka/sf-promise-gateway/issues
- npm.io page: https://npm.io/package/sf-promise-gateway

## Dependencies (1)

- [chai-as-promised](https://npm.io/package/chai-as-promised.md) ^6.0.0

## 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

- 0.9.0 (latest) — 2017-05-10

## README

# sf-promise-gateway

## About
This is a simple batch processing gateway that returns a promise, simple solver of complex promise batch problems.

## Usage
```
const gateway = require('sf-promise-gateway');
const items = [ "a", "b", "c"];

gateway(items, (item, next) => {
  const onSuccess = (result) => {
    next(null, result);
  };

  const onError = (error) => {
    next(error);
  };

  somethingAsync(onSuccess, onError);
})
.then((results) => {

});
```

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