outlet
v0.1.5
Published
> Run an ordered series of functions before and after execution of a function.
Downloads
1,168
Readme
outlet
Run an ordered series of functions before and after execution of a function.
Install
npm i -S outlet
Usage
const container = {}
const outlet = new Outlet(container)
outlet.before('foo', async () => {})
outlet.after('foo', async () => {})
outlet.run('foo', async () => {})
Benchmark
gulp lib:compile && node lib/__bench__/index.js