# bauer-promise

> Wrapper for bluebird with extend feature.

Latest version **1.1.3** (published 2015-11-26) · MIT license · 0 weekly downloads

## Install

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

## 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.1.3 |
| Published | 2015-11-26 |
| First published | 2014-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yuri Neves Silveira |
| Maintainers | yneves |
| Keywords | promise, defer, deferred, when, resolve, reject, then, fail, bluebird |

## Links

- npm: https://www.npmjs.com/package/bauer-promise
- Repository: https://github.com/yneves/node-bauer-promise
- Issues: https://github.com/yneves/node-bauer-promise/issues
- npm.io page: https://npm.io/package/bauer-promise

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) ^3.0.5
- [bauer-factory](https://npm.io/package/bauer-factory.md) >=2.0.0

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@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

## Recent versions

- 1.1.3 (latest) — 2015-11-26
- 1.1.2 — 2015-11-26
- 1.1.0 — 2015-09-02
- 1.0.4 — 2014-08-28
- 1.0.3 — 2014-07-29
- 1.0.2 — 2014-07-03
- 1.0.1 — 2014-06-27
- 1.0.0 — 2014-06-27

## README

# node-bauer-promise

Wrapper for bluebird with extend feature.

## Installation

```
npm install bauer-promise
```

## Usage

Use `bauer-promise` to create an extensible Promise constructor that is bound to a context object.

```js

var myObject = {
  name: "Yuri",
  age: 30
};

var Promise = require("bauer-promise")(myObject);

Promise.extend({
  
  setAge: function() {
    return this.then(function(newAge) {
      this.age = newAge; // this === myObject
    });
  }
  
});

Promise.resolve(40).setAge();

```

## API Summary

  * `Promise`
    * `.extend(modules Array) :void`
    * `.extend(module String) :void`
    * `.extend(methods Object) :void`
    * `.extend(name String, method Object) :void`
    * `.extend(name String, method Function) :void`
    

## License

[MIT](./LICENSE)

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