# tiny-promises

> Extend nodejs Promise with a lot of useful methods. # Installation `$ npm install --save tiny-promises` # Usage - Require it in your main file (entry point). ```javascript // index.js

Latest version **1.0.8** (published 2017-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install tiny-promises
pnpm add tiny-promises
yarn add tiny-promises
bun add tiny-promises
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-09-12 |
| First published | 2017-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tinyRush |
| Maintainers | hungnm2904, tinyrush |

## Links

- npm: https://www.npmjs.com/package/tiny-promises
- Repository: https://github.com/tinyRush/tiny-promises
- Homepage: https://github.com/tinyRush/tiny-promises#readme
- Issues: https://github.com/tinyRush/tiny-promises/issues
- npm.io page: https://npm.io/package/tiny-promises

## Recent versions

- 1.0.8 (latest) — 2017-09-12
- 1.0.7 — 2017-09-11
- 1.0.6 — 2017-09-11
- 1.0.5 — 2017-09-11
- 1.0.4 — 2017-09-11
- 1.0.3 — 2017-09-11
- 1.0.2 — 2017-09-11
- 1.0.1 — 2017-09-11
- 1.0.0 — 2017-09-11

## README

# tiny-promises
Extend nodejs Promise with a lot of useful methods.
# Installation
`$ npm install --save tiny-promises`
# Usage
- Require it in your main file (entry point).
```javascript
// index.js

require('tiny-promises');
```
- Create your *.d.ts in root folder and add reference to `tiny-promises` type.
```javascript
// app.d.ts

/// <reference types="tiny-promises" />
```
- Done.
# Methods
- [queue](#queue)
- [pipe](#pipe)
- [pipeArray](#pipearray)
## queue
```javascript
Promise.queue<T, K>(queue: T[], handler: (item: T) => Promise<K>): Promise<K[]>
``` 
## pipe
```javascript
Promise.pipe<T>(...funcs: ((arg) => Promise<T>)[]): (arg) => Promise<T>
```
## pipeArray
```javascript 
Promise.pipeArray<T>(funcs: ((arg) => Promise<T>)[]): (arg) => Promise<T>
```
# License
[MIT](https://github.com/tinyRush/tiny-promises/blob/master/LICENSE)

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