Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

promise-finally

blakeembrey120.1kMIT3.0.1TypeScript support: included

Simple wrapper to run promise "finally" logic

promise, finally, done, always, complete, cleanup

readme

Promise Finally

NPM version NPM downloads Build status Test coverage

Simple wrapper to run promise "finally" logic.

Installation

npm install promise-finally --save

Usage

import promiseFinally from 'promise-finally'

const p = Promise.resolve('something')

promiseFinally(p, () => ...)

License

MIT