Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floatdrop/pinkie-promise
Promise ponyfill with pinkie
https://github.com/floatdrop/pinkie-promise
Last synced: 17 days 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 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T15:20:10.000Z (over 6 years ago)
- Last Synced: 2024-05-15T13:14:36.065Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 119
- Watchers: 4
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# pinkie-promise [![Build Status](https://travis-ci.org/floatdrop/pinkie-promise.svg?branch=master)](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)