# promise-q

> promise polyfill with add-ons

Latest version **0.1.18** (published 2015-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install promise-q
pnpm add promise-q
yarn add promise-q
bun add promise-q
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.18 |
| Published | 2015-12-16 |
| First published | 2015-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jesús Germade |
| Maintainers | jgermade |
| Keywords | promise, polyfill, add-ons, when |

## Links

- npm: https://www.npmjs.com/package/promise-q
- Repository: https://github.com/jstools/promises-plus
- Homepage: https://github.com/jstools/promises-plus#readme
- Issues: https://github.com/jstools/promises-plus/issues
- npm.io page: https://npm.io/package/promise-q

## 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.1.18 (latest) — 2015-12-16
- 0.1.17 — 2015-12-16
- 0.1.16 — 2015-12-16
- 0.1.15 — 2015-12-16
- 0.1.14 — 2015-12-16
- 0.1.13 — 2015-12-16
- 0.1.12 — 2015-12-16
- 0.1.11 — 2015-12-16
- 0.1.10 — 2015-12-16
- 0.1.9 — 2015-12-16
- 0.1.8 — 2015-12-16
- 0.1.7 — 2015-12-16
- 0.1.6 — 2015-12-16
- 0.1.5 — 2015-12-16
- 0.1.4 — 2015-12-16
- … 4 more at https://npm.io/package/promise-q/versions

## README

jsTools: promise-q [![wercker status](https://app.wercker.com/status/776fd083031e0baa85545897a2fc6cfa/s "wercker status")](https://app.wercker.com/project/bykey/776fd083031e0baa85545897a2fc6cfa)
==================
[![](https://img.shields.io/npm/v/promise-q.svg)](https://www.npmjs.com/package/promise-q) [![](https://img.shields.io/bower/v/promise-q.svg)](http://bower.io/search/?q=promise-q) [![](https://img.shields.io/npm/dm/promise-q.svg)](https://www.npmjs.com/package/promise-q)
Installation
------------
```.sh
npm install promise-q --save
```
  or
```.sh
bower install promise-q --save
```
Usage
-----
```.js
$q(function (resolve, reject) {
        resolve('gogogo!');
    })

    .then(function (result) {
        console.log('checkpoint 1', result);
        throw 'whoops!';
    })

    .then(function (result) {
        console.log('checkpoint 2', result);
    },function (result) {
        console.log('checkpoint 2.1', result);
        return qPromise(function (resolve, reject) {
            setTimeout(function () { resolve('all right!'); }, 400);
        });
    })

    .then(function (result) {
        console.log('checkpoint 3', result);
    }, function (reason) {
        console.log('checkpoint 3.1', reason);
    })
;
```
output:
```.sh
checkpoint 1 gogogo!
checkpoint 2.1 whoops!
# elapsed 400ms
checkpoint 3 all right!
```

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