untapable
v0.0.1
Published
Enhance the Tapable library to incorporate the 'unTap' method.
Downloads
2
Readme
about untapable
Enhance the Tapable library to incorporate the 'unTap' method.
Installation
npm install --save untapable
Usage
unTap example
import { unTap } from 'untapable';
const hook = new SyncHook(["arg1", "arg2", "arg3"]);
const fn = () => {
}
hook.tap('use age', fn)
// untap
unTap(hook, 'use age'); // or unTap(hook, fn)