promise-prototype-finally

v1.0.0
Polyfill for Promise.prototype.finally
Promise promises finally cleanup

Polyfill for Promise.prototype.finally

Minimal polyfill for the yet-non-standard Promise.prototype.finally function, based on @domenic comment on promises specification.

The objective of this finally implementation is to provide syntactic sugar over raw promises for executing an action after a promise resolves or rejects while not altering the original result.

Install

npm install promise-prototype-finally

License

WTFPL

npm i promise-prototype-finally

Metadata

  • WTFPL
  • >=0.12
  • Gabriel Montes
  • released 6/25/2017

Downloads

Maintainers