# p-prom

> Enhancement-Monkey-Patch for native Promises

Latest version **1.0.3** (published 2017-02-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install p-prom
pnpm add p-prom
yarn add p-prom
bun add p-prom
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-02-07 |
| First published | 2017-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Philipp Dunkel |
| Maintainers | pipobscure |
| Keywords | Promise, spread, finally |

## Links

- npm: https://www.npmjs.com/package/p-prom
- Repository: https://github.com/pipobscure/p-promise
- Homepage: https://github.com/pipobscure/p-promise#readme
- Issues: https://github.com/pipobscure/p-promise/issues
- npm.io page: https://npm.io/package/p-prom

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-02-07
- 1.0.2 — 2017-02-04
- 1.0.1 — 2017-02-04
- 1.0.0 — 2017-02-03

## README

# p-prom

Inherits native `Promise` to create a new type. This type has the following differences/enhancements:

 * `Spreadable.reject` make sure the reason is an Error
 * `Spreadable.node` converts a node-style callback function into a promise returning one
 * `Spreadable.all` accepts its parts as an array or arguments. (i.e. it flattens)
 * `Spreadable.seq` accepts a list of function that are each sequenced using `.then`
 * `Spreadbale.node(function)` converts/promisifies a node-style function to a promise creating version
 * `Spreadable.defer` creates a deferred with these properties:
    * `resolve` resolves the deferred
    * `reject` rejects the deferred
    * `promise` is the promise of the deferred
 * `spreadable.spread(handler)` calls the resolve handler with the solve value spread as arguments.
 * `spreadable.finally(handler)` is a calls `handler(reason, value)` whether resolved or rejected

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