1.1.2 • Published 5 years ago

@xotic750/promise-x v1.1.2

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

@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)');
  });