/promise-finally

Simple wrapper to run promise "finally" logic

Primary LanguageTypeScriptMIT LicenseMIT

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