awesome_mvp_tapable
v0.0.1-beta.2
Published
Just a little module for plugins.
Downloads
2
Readme
Tapable
Just a little module for plugins.
usage
import { SyncHook } from "../../src/index";
const hook = new SyncHook(["arg1"]);
hook.tap("event1", (...args) => {
console.log("event1", ...args);
});
hook.tap("event2", (...args) => {
console.log("event2", ...args);
});
hook.call("hua hua");