bingo347 / x-promise

The library extends the functionality of native promises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

x-promise

The library extends the functionality of native promises
It's not polyfill!
ES5 compatible

Installation

npm install x-promise

Using

In node/browserify/webpack:

require('x-promise')

No-conflict version, for use in other libraries

const XPromise = require('x-promise/no-conflict')();
//or with any polyfill
const XMyPromise = require('x-promise/no-conflict')(MyPromise);

In browser (without module system):
copy x-promise.min.js to your public directory

<!-- optional, for old browsers -->
<script src="//cdn.polyfill.io/v2/polyfill.min.js"></script>

<script src="/path/to/x-promise.min.js"></script>

Added functionality

About

The library extends the functionality of native promises

License:MIT License


Languages

Language:JavaScript 100.0%