# bluebird-ployfill

> A polyfill for using bluebird as global Promise (when you don't like the original one.)

Latest version **1.0.1** (published 2017-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install bluebird-ployfill
pnpm add bluebird-ployfill
yarn add bluebird-ployfill
bun add bluebird-ployfill
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-05-02 |
| First published | 2017-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TonyPythoneer |
| Maintainers | tonypythoneer |

## Links

- npm: https://www.npmjs.com/package/bluebird-ployfill
- Repository: https://github.com/TonyPythoneer/bluebird-ployfill
- Homepage: https://github.com/TonyPythoneer/bluebird-ployfill#readme
- Issues: https://github.com/TonyPythoneer/bluebird-ployfill/issues
- npm.io page: https://npm.io/package/bluebird-ployfill

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [@types/bluebird-global](https://npm.io/package/@types/bluebird-global.md) ^3.5.1

## Recent versions

- 1.0.1 (latest) — 2017-05-02
- 1.0.0 — 2017-04-09
- 0.0.1 — 2017-02-12
- 0.0.0 — 2017-02-08

## README

# bluebird-ployfill

[![npm-v-badge][npm-v-badge]][npm-url] [![npm-dt-badge][npm-dt-badge]][npm-url] [![travis-ci-master-badge][travis-ci-master-badge]][travis-ci-url] [![coverge-master-badge][coverge-master-badge]][coverge-master-url]

Using bluebird to replace origin Promise in global.

Because origin Promise is so weak, bluebird have good performance, please refer [bluebird-benchmark]

**NOTE**: This lib is only for Node.js environment

## Install

```shell
$ node install bluebird-ployfill
```

## Usage & Example

Demo:

**Promise** has all methods of **bluebird**.

![bluebird-ployfill demo](./doc/demo.gif)


Code:

```javascript
import 'bluebird-ployfill';

import { stat } from 'fs';
const statAsync = Promise.promisify(stat);  // Using bluebird promise in global
statAsync('path')
    .then(stats => {
        // do something
    }).catch(err => {
        // do something
    })
```


[benchmark]: https://github.com/petkaantonov/bluebird/tree/master/benchmark

[travis-ci-master-badge]: https://api.travis-ci.org/TonyPythoneer/bluebird-ployfill.svg?branch=master
[travis-ci-url]: https://travis-ci.org/TonyPythoneer/bluebird-ployfill

[coverge-master-badge]: https://codecov.io/gh/TonyPythoneer/bluebird-ployfill/branch/master/graph/badge.svg
[coverge-master-url]: https://codecov.io/gh/TonyPythoneer/bluebird-ployfill/branch/master

[npm-v-badge]: https://img.shields.io/npm/v/bluebird-ployfill.svg
[npm-dt-badge]: https://img.shields.io/npm/dt/bluebird-ployfill.svg
[npm-url]: https://www.npmjs.com/package/bluebird-ployfill

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