@xotic750/promise-x

1.1.2 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

Promises/A+ logo

@xotic750/promise-x

A Promise/A+ and ES2018 implementation.

  • Passes the Compliances tests for Promises/A+

  • Passes the ECMAScript 6 Promises Test Suite.

  • Has ES2018 finally implementation.

  • Can be sub-classed.

Example

import P from 'promise-x';

P.resolve('Hello')
  .then((value) => {
    console.log(value);
  })
  .catch((reason) => {
    console.log(reason);
  })
  .finally(() => {
    console.log('settled (fulfilled or rejected)');
  });

Package Sidebar

Install

npm i @xotic750/promise-x

Weekly Downloads

33

Version

1.1.2

License

MIT

Unpacked Size

1.07 MB

Total Files

11

Last publish

Collaborators

  • xotic750