Opal-Estate-Pro/node_modules/pinkie-promise
2019-09-13 11:27:52 +07:00
..
index.js style Dashboard 2019-09-13 11:27:52 +07:00
license style Dashboard 2019-09-13 11:27:52 +07:00
package.json style Dashboard 2019-09-13 11:27:52 +07:00
readme.md style Dashboard 2019-09-13 11:27:52 +07:00

pinkie-promise Build Status

ES2015 Promise ponyfill

Module exports global Promise object (if available) or pinkie Promise polyfill.

Install

$ npm install --save pinkie-promise

Usage

var Promise = require('pinkie-promise');

new Promise(function (resolve) { resolve('unicorns'); });
//=> Promise { 'unicorns' }
  • pify - Promisify a callback-style function

License

MIT © Vsevolod Strukchinsky