UNPKG

751 BMarkdownView Raw
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
5Module 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
16var Promise = require('pinkie-promise');
17
18new 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
28MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)