1 | # pinkie-promise [![Build Status](https://travis-ci.org/floatdrop/pinkie-promise.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie-promise)
|
2 |
|
3 | > [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) ponyfill
|
4 |
|
5 | Module exports global Promise object (if available) or [`pinkie`](http://github.com/floatdrop/pinkie) Promise polyfill.
|
6 |
|
7 | ## Install
|
8 |
|
9 | ```
|
10 | $ npm install --save pinkie-promise
|
11 | ```
|
12 |
|
13 | ## Usage
|
14 |
|
15 | ```js
|
16 | var Promise = require('pinkie-promise');
|
17 |
|
18 | new Promise(function (resolve) { resolve('unicorns'); });
|
19 | //=> Promise { 'unicorns' }
|
20 | ```
|
21 |
|
22 | ## Related
|
23 |
|
24 | - [pify](https://github.com/sindresorhus/pify) - Promisify a callback-style function
|
25 |
|
26 | ## License
|
27 |
|
28 | MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
|