Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)