node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

promise-finally

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