source: trip-planner-front/node_modules/pinkie-promise/readme.md@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 751 bytes
RevLine 
[6a3a178]1# pinkie-promise [![Build Status](https://travis-ci.org/floatdrop/pinkie-promise.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie-promise)
2
3> [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) ponyfill
4
5Module exports global Promise object (if available) or [`pinkie`](http://github.com/floatdrop/pinkie) Promise polyfill.
6
7## Install
8
9```
10$ npm install --save pinkie-promise
11```
12
13## Usage
14
15```js
16var Promise = require('pinkie-promise');
17
18new Promise(function (resolve) { resolve('unicorns'); });
19//=> Promise { 'unicorns' }
20```
21
22## Related
23
24- [pify](https://github.com/sindresorhus/pify) - Promisify a callback-style function
25
26## License
27
28MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
Note: See TracBrowser for help on using the repository browser.