Skip to content

Repository files navigation

pinkie-promise Build Status

ES2015 Promiseponyfill

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

Install

$ npm install --save pinkie-promise

Usage

varPromise=require('pinkie-promise');newPromise(function(resolve){resolve('unicorns');});//=> Promise { 'unicorns' }

Related

  • pify - Promisify a callback-style function

License

MIT © Vsevolod Strukchinsky

About

Promise ponyfill with pinkie

Resources

Stars

115 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages