https://github.com/floatdrop/pinkie-promise
Promise ponyfill with pinkie
https://github.com/floatdrop/pinkie-promise
Last synced: 7 months ago
JSON representation
Promise ponyfill with pinkie
- Host: GitHub
- URL: https://github.com/floatdrop/pinkie-promise
- Owner: floatdrop
- License: mit
- Created: 2015-05-13T10:15:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T15:20:10.000Z (over 7 years ago)
- Last Synced: 2025-04-04T03:16:01.280Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 117
- Watchers: 3
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- fucking-awesome-promises - pinkie-promise - Use native, or fall back to `pinkie`. Great for node library authors. (Promises/A+ Implementations (ES6/ES2015 compatible) / Fallbacks)
- awesome-nodejs-precise - pinkie-promise - promise .svg?style=social&label=Star&maxAge=2592000?style=flat-square)]() | Promise ponyfill. | (Packages / Control flow Promises)
README
# pinkie-promise [](https://travis-ci.org/floatdrop/pinkie-promise)
> ES2015 [`Promise`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) [ponyfill](https://ponyfill.com)
Module exports global Promise object (if available) or [`pinkie`](https://github.com/floatdrop/pinkie) Promise polyfill.
## Install
```
$ npm install --save pinkie-promise
```
## Usage
```js
var Promise = require('pinkie-promise');
new Promise(function (resolve) { resolve('unicorns'); });
//=> Promise { 'unicorns' }
```
## Related
- [pify](https://github.com/sindresorhus/pify) - Promisify a callback-style function
## License
MIT © [Vsevolod Strukchinsky](https://github.com/floatdrop)