UNPKG

promise-prototype

Version:

Get the prototytpe of the Promise class (Native ES6, Bluebird, Q, RSVP, etc.)

56 lines (34 loc) 1.42 kB
# promise-prototype ![Travis](https://img.shields.io/travis/AndreasPizsa/promise-prototype.svg?style=flat-square) ![Coverage Status](https://img.shields.io/coveralls/AndreasPizsa/promise-prototype.svg?style=flat-square) ![Downloads](https://img.shields.io/npm/dm/promise-prototype.svg?style=flat-square) > Get the prototytpe of the Promise class (Native ES6, Bluebird, Q, RSVP, etc.) ## Install Install with [npm](https://www.npmjs.com/) ```sh $ npm i promise-prototype --save ``` ## Usage ```js var Promise = require('any-promise'); var promisePrototype = require('promise-prototype')(Promise); ``` ## API <!-- add a path or glob pattern for files with code comments to use for docs --> {%= apidocs("index.js") %} ## Related projects <!-- add an array of related projects, then un-escape the helper --> {%= related([]) %} ## Running tests Install dev dependencies: ```sh $ npm i -d && npm test ``` ## Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/AndreasPizsa/promise-prototype/issues/new). ## Author **Andreas Pizsa** + [github/AndreasPizsa](https://github.com/AndreasPizsa) + [twitter/AndreasPizsa](http://twitter.com/AndreasPizsa) ## License Copyright © 2016 Andreas Pizsa Released under the MIT license. *** _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on February 11, 2016._