You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
751 B

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