{"_id":"hookified","_rev":"4176533","name":"hookified","description":"Event Emitting and Middleware Hooks","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"time":{"modified":"2026-03-01T21:34:44.000Z","created":"2024-09-03T15:36:32.307Z","2.0.1":"2026-03-01T19:06:45.437Z","2.0.0":"2026-03-01T08:44:34.388Z","1.15.1":"2026-01-31T20:19:44.222Z","1.15.0":"2026-01-05T04:50:40.375Z","1.14.0":"2025-12-08T21:06:02.678Z","1.13.0":"2025-11-11T20:42:06.085Z","1.12.2":"2025-10-15T17:42:32.520Z","1.12.1":"2025-09-18T15:49:29.522Z","1.12.0":"2025-08-22T16:02:50.489Z","1.11.0":"2025-07-26T17:11:00.036Z","1.10.0":"2025-06-29T07:42:29.336Z","1.9.1":"2025-06-02T10:58:54.127Z","1.9.0":"2025-05-06T18:23:27.753Z","1.8.2":"2025-04-09T19:16:22.792Z","1.8.1":"2025-03-14T00:23:17.892Z","1.8.0":"2025-03-13T15:59:53.692Z","1.7.1":"2025-02-14T22:03:19.752Z","1.7.0":"2025-01-17T18:25:20.523Z","1.6.0":"2024-12-22T17:57:41.285Z","1.5.1":"2024-11-25T16:38:59.207Z","1.5.0":"2024-10-29T19:34:29.510Z","1.4.0":"2024-10-15T20:56:43.776Z","1.3.0":"2024-10-14T20:04:11.089Z","1.2.1":"2024-10-13T21:57:10.899Z","1.2.0":"2024-10-02T15:21:30.567Z","1.1.0":"2024-09-23T18:26:06.615Z","1.0.0":"2024-09-17T19:13:04.693Z","0.7.1":"2024-09-06T19:47:47.049Z","0.7.0":"2024-09-06T16:07:17.765Z","0.6.0":"2024-09-03T19:45:09.274Z","0.5.1":"2024-09-03T16:03:53.747Z","0.5.0":"2024-09-03T15:36:32.307Z"},"users":{},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"versions":{"2.0.1":{"name":"hookified","version":"2.0.1","description":"Event Emitting and Middleware Hooks","type":"module","main":"./dist/node/index.js","module":"./dist/node/index.js","types":"./dist/node/index.d.ts","exports":{".":{"import":{"types":"./dist/node/index.d.ts","default":"./dist/node/index.js"},"require":{"types":"./dist/node/index.d.cts","default":"./dist/node/index.cjs"},"default":"./dist/node/index.js"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","benchmark:readme":"pnpm tsx scripts/benchmark-readme.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.4.4","@monstermann/tinybench-pretty-printer":"^0.3.0","@types/node":"^25.3.0","@vitest/coverage-v8":"^4.0.18","docula":"^0.41.1","emittery":"^1.2.0","eventemitter3":"^5.0.4","hookable":"^6.0.1","pino":"^10.3.1","rimraf":"^6.1.3","tinybench":"^6.0.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^4.0.18"},"gitHead":"52df642958dd6e497a7c6ca506bb41587cc18e3f","_id":"hookified@2.0.1","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"shasum":"de812673162bae43d6d853434e888a990b424bcb","size":51484,"noattachment":false,"key":"/hookified/-/hookified-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-2.0.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_2.0.1_1772392005273_0.6963028063914274"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-01T19:06:45.437Z","publish_time":1772392005437,"_source_registry_name":"default","_cnpm_publish_time":1772392005437},"2.0.0":{"name":"hookified","version":"2.0.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"./dist/node/index.js","module":"./dist/node/index.js","types":"./dist/node/index.d.ts","exports":{".":{"import":{"types":"./dist/node/index.d.ts","default":"./dist/node/index.js"},"require":{"types":"./dist/node/index.d.cts","default":"./dist/node/index.cjs"},"default":"./dist/node/index.js"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","benchmark:readme":"pnpm tsx scripts/benchmark-readme.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.4.4","@monstermann/tinybench-pretty-printer":"^0.3.0","@types/node":"^25.3.0","@vitest/coverage-v8":"^4.0.18","docula":"^0.41.1","emittery":"^1.2.0","eventemitter3":"^5.0.4","hookable":"^6.0.1","pino":"^10.3.1","rimraf":"^6.1.3","tinybench":"^6.0.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^4.0.18"},"gitHead":"89902128a1e3c4f29697c96041df4e08f1c88fbd","_id":"hookified@2.0.0","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"shasum":"3a8f96b3560afb6a403c9f33a2b70add640129f4","size":48980,"noattachment":false,"key":"/hookified/-/hookified-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-2.0.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_2.0.0_1772354674232_0.08706837897964892"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-01T08:44:34.388Z","publish_time":1772354674388,"_source_registry_name":"default","_cnpm_publish_time":1772354674388},"1.15.1":{"name":"hookified","version":"1.15.1","description":"Event Emitting and Middleware Hooks","type":"module","main":"./dist/node/index.js","module":"./dist/node/index.js","types":"./dist/node/index.d.ts","exports":{".":{"import":{"types":"./dist/node/index.d.ts","default":"./dist/node/index.js"},"require":{"types":"./dist/node/index.d.cts","default":"./dist/node/index.cjs"},"default":"./dist/node/index.js"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","benchmark:readme":"pnpm tsx scripts/benchmark-readme.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.3.13","@monstermann/tinybench-pretty-printer":"^0.3.0","@types/node":"^25.0.3","@vitest/coverage-v8":"^4.0.18","docula":"^0.40.0","emittery":"^1.2.0","eventemitter3":"^5.0.4","hookable":"^6.0.1","pino":"^10.3.0","rimraf":"^6.1.2","tinybench":"^6.0.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^4.0.18"},"gitHead":"303f155dbd6ed6293745de82b126c879f07fd6d4","_id":"hookified@1.15.1","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"shasum":"b1fafeaa5489cdc29cb85546a8f837ed4ffbbcb6","size":32237,"noattachment":false,"key":"/hookified/-/hookified-1.15.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.15.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.15.1_1769890784083_0.3398730168894193"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-31T20:19:44.222Z","publish_time":1769890784222,"_source_registry_name":"default","_cnpm_publish_time":1769890784222},"1.15.0":{"name":"hookified","version":"1.15.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"./dist/node/index.js","module":"./dist/node/index.js","types":"./dist/node/index.d.ts","exports":{".":{"import":{"types":"./dist/node/index.d.ts","default":"./dist/node/index.js"},"require":{"types":"./dist/node/index.d.cts","default":"./dist/node/index.cjs"},"default":"./dist/node/index.js"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.3.8","@monstermann/tinybench-pretty-printer":"^0.3.0","@types/node":"^25.0.3","@vitest/coverage-v8":"^4.0.15","docula":"^0.31.1","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^6.0.1","pino":"^10.1.0","rimraf":"^6.1.2","tinybench":"^6.0.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^4.0.15"},"_id":"hookified@1.15.0","gitHead":"8e555b76ff5d1bfef5caea5720c951cf1caf45a9","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"shasum":"d51db9fe134b8bd19c1aa88f9fcd7878995e4b66","size":32244,"noattachment":false,"key":"/hookified/-/hookified-1.15.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.15.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.15.0_1767588640230_0.9574574898920485"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-05T04:50:40.375Z","publish_time":1767588640375,"_source_registry_name":"default","_cnpm_publish_time":1767588640375},"1.14.0":{"name":"hookified","version":"1.14.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"./dist/node/index.js","module":"./dist/node/index.js","types":"./dist/node/index.d.ts","exports":{".":{"import":{"types":"./dist/node/index.d.ts","default":"./dist/node/index.js"},"require":{"types":"./dist/node/index.d.cts","default":"./dist/node/index.cjs"},"default":"./dist/node/index.js"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.3.8","@monstermann/tinybench-pretty-printer":"^0.3.0","@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.15","docula":"^0.31.1","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^10.1.0","rimraf":"^6.1.2","tinybench":"^6.0.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^4.0.15"},"_id":"hookified@1.14.0","gitHead":"f3e0d9f3c5b1790e2f5073308bc078bfd61fdcbf","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"shasum":"815ca3b9f3e77c782f583bf3974e966df7a9fd7b","size":30879,"noattachment":false,"key":"/hookified/-/hookified-1.14.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.14.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.14.0_1765227962504_0.7163536802917139"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-08T21:06:02.678Z","publish_time":1765227962678,"_source_registry_name":"default","_cnpm_publish_time":1765227962678},"1.13.0":{"name":"hookified","version":"1.13.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.3.5","@monstermann/tinybench-pretty-printer":"^0.2.0","@types/node":"^24.10.0","@vitest/coverage-v8":"^4.0.8","docula":"^0.31.0","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^10.1.0","rimraf":"^6.1.0","tinybench":"^5.1.0","tsup":"^8.5.0","tsx":"^4.20.6","typescript":"^5.9.3","vitest":"^4.0.8"},"pnpm":{"onlyBuiltDependencies":["unrs-resolver"]},"_id":"hookified@1.13.0","gitHead":"fea36ca5bd0aeceeb56b0a85d4148a9c8f06bef2","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"shasum":"fa7f8ab04897d77eecba52f35fe29e3d1f97dbbf","size":31513,"noattachment":false,"key":"/hookified/-/hookified-1.13.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.13.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.13.0_1762893725902_0.7923983919774353"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-11T20:42:06.085Z","publish_time":1762893726085,"_source_registry_name":"default","_cnpm_publish_time":1762893726085},"1.12.2":{"name":"hookified","version":"1.12.2","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.2.6","@monstermann/tinybench-pretty-printer":"^0.2.0","@types/node":"^24.7.2","@vitest/coverage-v8":"^3.2.4","docula":"^0.30.0","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^10.0.0","rimraf":"^6.0.1","tinybench":"^5.0.1","tsup":"^8.5.0","tsx":"^4.20.6","typescript":"^5.9.3","vitest":"^3.2.4"},"pnpm":{"onlyBuiltDependencies":["unrs-resolver"]},"_id":"hookified@1.12.2","gitHead":"7105ff3a20e7c6639bfa344925debf15ff510877","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"shasum":"7002b17a98f6d594648df088f8c48a292eb241f7","size":28913,"noattachment":false,"key":"/hookified/-/hookified-1.12.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.12.2.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.12.2_1760550152310_0.6257597172416958"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-15T17:42:32.520Z","publish_time":1760550152520,"_source_registry_name":"default","_cnpm_publish_time":1760550152520},"1.12.1":{"name":"hookified","version":"1.12.1","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"biome check --error-on-warnings && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.2.4","@monstermann/tinybench-pretty-printer":"^0.2.0","@types/node":"^24.5.2","@vitest/coverage-v8":"^3.2.4","docula":"^0.20.0","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.10.0","rimraf":"^6.0.1","tinybench":"^5.0.1","tsup":"^8.5.0","tsx":"^4.20.5","typescript":"^5.9.2","vitest":"^3.2.4"},"pnpm":{"onlyBuiltDependencies":["unrs-resolver"]},"_id":"hookified@1.12.1","gitHead":"3b6bc58d50c6807f027d9e908669dcc879b9854e","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"shasum":"b0de0116ca346fd6c4e55db901f52d5cd728ef00","size":27029,"noattachment":false,"key":"/hookified/-/hookified-1.12.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.12.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.12.1_1758210569295_0.528716611218732"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-18T15:49:29.522Z","publish_time":1758210569522,"_source_registry_name":"default","_cnpm_publish_time":1758210569522},"1.12.0":{"name":"hookified","version":"1.12.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"lint":"biome check --write","test":"pnpm lint && vitest run --coverage","test:ci":"biome check && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@biomejs/biome":"^2.2.0","@monstermann/tinybench-pretty-printer":"^0.1.0","@types/node":"^24.3.0","@vitest/coverage-v8":"^3.2.4","docula":"^0.20.0","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.9.0","rimraf":"^6.0.1","tinybench":"^5.0.0","tsup":"^8.5.0","tsx":"^4.20.4","typescript":"^5.9.2","vitest":"^3.2.4"},"pnpm":{"onlyBuiltDependencies":["esbuild","unrs-resolver"]},"_id":"hookified@1.12.0","gitHead":"e560c0e4246c3828d93a22422da28db21ddd23a8","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"shasum":"eb4097ed1459211eef47fe85a8b3382c5f633996","size":17318,"noattachment":false,"key":"/hookified/-/hookified-1.12.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.12.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.12.0_1755878570295_0.7263374979977604"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-22T16:02:50.489Z","publish_time":1755878570489,"_source_registry_name":"default","_cnpm_publish_time":1755878570489},"1.11.0":{"name":"hookified","version":"1.11.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@monstermann/tinybench-pretty-printer":"^0.1.0","@types/node":"^24.1.0","@vitest/coverage-v8":"^3.2.4","docula":"^0.13.1","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.7.0","rimraf":"^6.0.1","tinybench":"^4.0.1","tsup":"^8.5.0","tsx":"^4.20.3","typescript":"^5.8.3","vitest":"^3.2.4","xo":"^1.2.1"},"pnpm":{"onlyBuiltDependencies":["esbuild","unrs-resolver"]},"_id":"hookified@1.11.0","gitHead":"ca134890d59c470a75279e189c8424a7e551e141","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"shasum":"085a8f1e196ffe31905d5122b40a8e547c69e660","size":16775,"noattachment":false,"key":"/hookified/-/hookified-1.11.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.11.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.11.0_1753549859857_0.12770170962180272"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-26T17:11:00.036Z","publish_time":1753549860036,"_source_registry_name":"default","_cnpm_publish_time":1753549860036},"1.10.0":{"name":"hookified","version":"1.10.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@monstermann/tinybench-pretty-printer":"^0.1.0","@types/node":"^24.0.7","@vitest/coverage-v8":"^3.2.4","docula":"^0.13.0","emittery":"^1.2.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.7.0","rimraf":"^6.0.1","tinybench":"^4.0.1","tsup":"^8.5.0","tsx":"^4.20.3","typescript":"^5.8.3","vitest":"^3.2.4","xo":"^1.1.1"},"pnpm":{"onlyBuiltDependencies":["esbuild","unrs-resolver"]},"_id":"hookified@1.10.0","gitHead":"ad2cc95efd9b25b4b34e43e488babf5eb989dfe4","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"shasum":"ee7d7c83d6dec027aaa2296a8ffeadd84cbd9fd2","size":15362,"noattachment":false,"key":"/hookified/-/hookified-1.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.10.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com","actor":{"name":"jaredwray","email":"me@jaredwray.com","type":"user"}},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.10.0_1751182949148_0.3385494004176468"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-29T07:42:29.336Z","publish_time":1751182949336,"_source_registry_name":"default","_cnpm_publish_time":1751182949336},"1.9.1":{"name":"hookified","version":"1.9.1","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@monstermann/tinybench-pretty-printer":"^0.1.0","@types/node":"^22.15.29","@vitest/coverage-v8":"^3.1.4","docula":"^0.12.2","emittery":"^1.1.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.7.0","rimraf":"^6.0.1","tinybench":"^4.0.1","tsup":"^8.5.0","tsx":"^4.19.4","typescript":"^5.8.3","vitest":"^3.1.4","xo":"^1.0.5"},"pnpm":{"onlyBuiltDependencies":["esbuild","unrs-resolver"]},"_id":"hookified@1.9.1","gitHead":"08cba1668a5d1247b5aef59afecd51b47f57cf5d","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"shasum":"d30cb77590672a05029b7ea9adf25b71c406121d","size":14940,"noattachment":false,"key":"/hookified/-/hookified-1.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.9.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.9.1_1748861933852_0.8320004029506838"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-02T10:58:54.127Z","publish_time":1748861934127,"_source_registry_name":"default","_cnpm_publish_time":1748861934127},"1.9.0":{"name":"hookified","version":"1.9.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@monstermann/tinybench-pretty-printer":"^0.1.0","@vitest/coverage-v8":"^3.1.3","docula":"^0.11.1","emittery":"^1.1.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.6.0","rimraf":"^6.0.1","tinybench":"^4.0.1","tsup":"^8.4.0","tsx":"^4.19.4","typescript":"^5.8.3","vitest":"^3.1.3","xo":"^0.60.0"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"hookified@1.9.0","gitHead":"c64dd68774a4631a82e6504307b89c92472b64ed","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"shasum":"271211f61c63b3a68a8ead9d9fddd72b5806c004","size":14861,"noattachment":false,"key":"/hookified/-/hookified-1.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.9.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.9.0_1746555807569_0.7111438314336029"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-06T18:23:27.753Z","publish_time":1746555807753,"_source_registry_name":"default","_cnpm_publish_time":1746555807753},"1.8.2":{"name":"hookified","version":"1.8.2","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"pnpm build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@monstermann/tinybench-pretty-printer":"^0.1.0","@vitest/coverage-v8":"^3.1.1","docula":"^0.11.0","emittery":"^1.1.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.6.0","rimraf":"^6.0.1","tinybench":"^4.0.1","tsup":"^8.4.0","tsx":"^4.19.3","typescript":"^5.8.3","vitest":"^3.1.1","xo":"^0.60.0"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"hookified@1.8.2","gitHead":"4df97112e8e660722968934cc8d4cb059cdb9fb2","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"shasum":"b365a89dfce3da43e790673a6a97d3b896ae5fa7","size":14533,"noattachment":false,"key":"/hookified/-/hookified-1.8.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.8.2.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.8.2_1744226182603_0.26296648745391504"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-09T19:16:22.792Z","publish_time":1744226182792,"_source_registry_name":"default","_cnpm_publish_time":1744226182792},"1.8.1":{"name":"hookified","version":"1.8.1","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","benchmark":"pnpm benchmark:hooks && pnpm benchmark:emit","benchmark:hooks":"pnpm tsx benchmark/hook.ts","benchmark:emit":"pnpm tsx benchmark/emit.ts","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@monstermann/tinybench-pretty-printer":"^0.0.0","@vitest/coverage-v8":"^3.0.8","docula":"^0.10.1","emittery":"^1.1.0","eventemitter3":"^5.0.1","hookable":"^5.5.3","pino":"^9.6.0","rimraf":"^6.0.1","tinybench":"^3.1.1","tsup":"^8.4.0","tsx":"^4.19.3","typescript":"^5.8.2","vitest":"^3.0.8","xo":"^0.60.0"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"hookified@1.8.1","gitHead":"2fa64b2d137617c8dea8e7d221348163184b03d6","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"shasum":"74a8c97d36e5f8004d230ee2156a607cc84c358c","size":14482,"noattachment":false,"key":"/hookified/-/hookified-1.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.8.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.8.1_1741911797696_0.2541659577278301"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-14T00:23:17.892Z","publish_time":1741911797892,"_source_registry_name":"default","_cnpm_publish_time":1741911797892},"1.8.0":{"name":"hookified","version":"1.8.0","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^3.0.8","docula":"^0.10.1","pino":"^9.6.0","rimraf":"^6.0.1","tsup":"^8.4.0","typescript":"^5.8.2","vitest":"^3.0.8","xo":"^0.60.0"},"pnpm":{"onlyBuiltDependencies":["esbuild"]},"_id":"hookified@1.8.0","gitHead":"ad9ee3ff066d8ee19be9eafa8158724d4058b1c2","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"shasum":"ad99ceb307265fddffa9411db8dab83594888a21","size":15713,"noattachment":false,"key":"/hookified/-/hookified-1.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.8.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.8.0_1741881593507_0.6139705842925669"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-13T15:59:53.692Z","publish_time":1741881593692,"_source_registry_name":"default","_cnpm_publish_time":1741881593692},"1.7.1":{"name":"hookified","version":"1.7.1","description":"Event Emitting and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^3.0.5","docula":"^0.10.0","rimraf":"^6.0.1","tsup":"^8.3.6","typescript":"^5.7.3","vitest":"^3.0.5","xo":"^0.60.0"},"_id":"hookified@1.7.1","gitHead":"168280fffadf0e7889a4e5455d3196804fc6b5fa","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"shasum":"b08228173e06e9e8767bae1dffb216b8c6171b41","size":13571,"noattachment":false,"key":"/hookified/-/hookified-1.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.7.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.7.1_1739570599557_0.11437825369127896"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-14T22:03:19.752Z","publish_time":1739570599752,"_source_registry_name":"default","_cnpm_publish_time":1739570599752},"1.7.0":{"name":"hookified","version":"1.7.0","description":"Event and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^3.0.2","docula":"^0.9.6","rimraf":"^6.0.1","tsup":"^8.3.5","typescript":"^5.7.3","vitest":"^3.0.2","xo":"^0.60.0"},"_id":"hookified@1.7.0","gitHead":"674764b464185fd5fa69a0b3240d2f16caf3d87c","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"shasum":"d1eb2a1d099fd4eeb3c43e5f75f3fe2ae82aae13","size":13566,"noattachment":false,"key":"/hookified/-/hookified-1.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.7.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.7.0_1737138320301_0.6621646165127408"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-17T18:25:20.523Z","publish_time":1737138320523,"_source_registry_name":"default","_cnpm_publish_time":1737138320523},"1.6.0":{"name":"hookified","version":"1.6.0","description":"Event and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.8","docula":"^0.9.6","rimraf":"^6.0.1","tsup":"^8.3.5","typescript":"^5.7.2","vitest":"^2.1.8","xo":"^0.60.0"},"_id":"hookified@1.6.0","gitHead":"d129019487f7c916b37fa017363378d8551f2c1e","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"shasum":"161315ed4525a21f74d710dd9cec71e73951bed2","size":12643,"noattachment":false,"key":"/hookified/-/hookified-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.6.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hookified_1.6.0_1734890261097_0.5691988703218527"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-22T17:57:41.285Z","publish_time":1734890261285,"_source_registry_name":"default","_cnpm_publish_time":1734890261285},"1.5.1":{"name":"hookified","version":"1.5.1","description":"Event and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.5","docula":"^0.9.5","rimraf":"^6.0.1","tsup":"^8.3.5","typescript":"^5.7.2","vitest":"^2.1.5","xo":"^0.59.3"},"_id":"hookified@1.5.1","gitHead":"671a59744674a50da997fcea4b13986f3a10636a","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"2a473492d9c392b703e8b56fb458832387ec8081","size":11889,"noattachment":false,"key":"/hookified/-/hookified-1.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.5.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.5.1_1732552739025_0.02615936761492499"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-25T16:38:59.207Z","publish_time":1732552739207,"_source_registry_name":"default","_cnpm_publish_time":1732552739207},"1.5.0":{"name":"hookified","version":"1.5.0","description":"Event and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.4","docula":"^0.9.4","rimraf":"^6.0.1","tsup":"^8.3.5","typescript":"^5.6.3","vitest":"^2.1.4","xo":"^0.59.3"},"_id":"hookified@1.5.0","gitHead":"cb522e9f725697af61e6ccde702b6ee8683880da","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"bb0ca401840ad6e9fdb0ddbe040592bfa8cb04f8","size":11450,"noattachment":false,"key":"/hookified/-/hookified-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.5.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.5.0_1730230469293_0.6361099685351088"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-29T19:34:29.510Z","publish_time":1730230469510,"_source_registry_name":"default","_cnpm_publish_time":1730230469510},"1.4.0":{"name":"hookified","version":"1.4.0","description":"Event and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.3","docula":"^0.9.3","rimraf":"^6.0.1","tsup":"^8.3.0","typescript":"^5.6.3","vitest":"^2.1.3","xo":"^0.59.3"},"_id":"hookified@1.4.0","gitHead":"094b6053c3b6b8717b1d7b282adcccd6d1303905","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"79395630147ea21f25a1b0daae79d701e75e6e09","size":9663,"noattachment":false,"key":"/hookified/-/hookified-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.4.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.4.0_1729025803565_0.5102201385144798"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-15T20:56:43.776Z","publish_time":1729025803776,"_source_registry_name":"default","_cnpm_publish_time":1729025803776},"1.3.0":{"name":"hookified","version":"1.3.0","description":"Event and Middleware Hooks","type":"module","main":"dist/node/index.cjs","module":"dist/node/index.js","exports":{".":{"import":"./dist/node/index.js","require":"./dist/node/index.cjs"},"./browser":{"import":"./dist/browser/index.js","default":"./dist/browser/index.global.js"}},"types":"dist/node/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.3","docula":"^0.9.3","rimraf":"^6.0.1","tsup":"^8.3.0","typescript":"^5.6.3","vitest":"^2.1.3","xo":"^0.59.3"},"_id":"hookified@1.3.0","gitHead":"ba6787c0823470d535ad05306b35e961b2e28f8c","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"3d4e01a5b7d5b8c18b848fbe321ab0fde7d98bf9","size":6764,"noattachment":false,"key":"/hookified/-/hookified-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.3.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.3.0_1728936250898_0.2605133181595183"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-14T20:04:11.089Z","publish_time":1728936251089,"_source_registry_name":"default","_cnpm_publish_time":1728936251089},"1.2.1":{"name":"hookified","version":"1.2.1","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.2","docula":"^0.9.3","rimraf":"^6.0.1","tsup":"^8.3.0","typescript":"^5.6.3","vitest":"^2.1.2","xo":"^0.59.3"},"_id":"hookified@1.2.1","gitHead":"91693c938a899789c5d76e07f0c38c8711cae6ac","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"855c367fd150aec0592368818070db5426fb820b","size":4218,"noattachment":false,"key":"/hookified/-/hookified-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.2.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.2.1_1728856630647_0.47112625219379445"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-13T21:57:10.899Z","publish_time":1728856630899,"_source_registry_name":"default","_cnpm_publish_time":1728856630899},"1.2.0":{"name":"hookified","version":"1.2.0","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.1","docula":"^0.9.1","rimraf":"^6.0.1","tsup":"^8.3.0","typescript":"^5.6.2","vitest":"^2.1.1","xo":"^0.59.3"},"_id":"hookified@1.2.0","gitHead":"3b0bf69b4c351c5ad381ab961a6c552824fcf186","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"ab4f39e667c69eb877082cdc48f9d3decad125fb","size":4248,"noattachment":false,"key":"/hookified/-/hookified-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.2.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.2.0_1727882490384_0.507117956171208"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-02T15:21:30.567Z","publish_time":1727882490567,"_source_registry_name":"default","_cnpm_publish_time":1727882490567},"1.1.0":{"name":"hookified","version":"1.1.0","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.1","docula":"^0.9.0","rimraf":"^6.0.1","tsup":"^8.3.0","typescript":"^5.6.2","vitest":"^2.1.1","xo":"^0.59.3"},"_id":"hookified@1.1.0","gitHead":"e1012faa35932d974a2ee1b5bad8dce17ac055df","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"a17e65817e38f0695652cca147196c9e07ca72df","size":4433,"noattachment":false,"key":"/hookified/-/hookified-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.1.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.1.0_1727115966441_0.3051113546040869"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-23T18:26:06.615Z","publish_time":1727115966615,"_source_registry_name":"default","_cnpm_publish_time":1727115966615},"1.0.0":{"name":"hookified","version":"1.0.0","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js"}},"engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","dependencies":{"emittery":"^1.0.3"},"devDependencies":{"@vitest/coverage-v8":"^2.1.1","docula":"^0.9.0","rimraf":"^6.0.1","tsup":"^8.3.0","typescript":"^5.6.2","vitest":"^2.1.1","xo":"^0.59.3"},"_id":"hookified@1.0.0","gitHead":"a45fdefba4e44f2efd2ce9d87d8ccdb8437af742","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"24c8112c78f5ac2efc12fa3ca7d71fb8e8ab8f91","size":3951,"noattachment":false,"key":"/hookified/-/hookified-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-1.0.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_1.0.0_1726600384510_0.27010948951686675"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-17T19:13:04.693Z","publish_time":1726600384693,"_source_registry_name":"default","_cnpm_publish_time":1726600384693},"0.7.1":{"name":"hookified","version":"0.7.1","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsc","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","dependencies":{"emittery":"^1.0.3"},"devDependencies":{"@vitest/coverage-v8":"^2.0.5","docula":"^0.9.0","rimraf":"^6.0.1","typescript":"^5.5.4","vitest":"^2.0.5","xo":"^0.59.3"},"_id":"hookified@0.7.1","gitHead":"c53728cbe4aa6cad061f1578f7ca4117d8d302ad","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"e3ea90c749b5fb25fb39a24e370af7055c5a4b1b","size":3695,"noattachment":false,"key":"/hookified/-/hookified-0.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-0.7.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_0.7.1_1725652066859_0.30377788974999476"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-06T19:47:47.049Z","publish_time":1725652067049,"_source_registry_name":"default","_cnpm_publish_time":1725652067049},"0.7.0":{"name":"hookified","version":"0.7.0","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsc","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","dependencies":{"emittery":"^1.0.3"},"devDependencies":{"@vitest/coverage-v8":"^2.0.5","docula":"^0.9.0","rimraf":"^6.0.1","typescript":"^5.5.4","vitest":"^2.0.5","xo":"^0.59.3"},"_id":"hookified@0.7.0","gitHead":"cc94ce7e2e0faa1622d2a4f5b54b1d68f25cb5bb","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"5a31c4bced553564c342a83e49a5fd47ab791d3f","size":3715,"noattachment":false,"key":"/hookified/-/hookified-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-0.7.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_0.7.0_1725638837601_0.0026709807541318575"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-06T16:07:17.765Z","publish_time":1725638837765,"_source_registry_name":"default","_cnpm_publish_time":1725638837765},"0.6.0":{"name":"hookified","version":"0.6.0","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsc","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","dependencies":{"emittery":"^1.0.3"},"devDependencies":{"@vitest/coverage-v8":"^2.0.5","docula":"^0.9.0","rimraf":"^6.0.1","typescript":"^5.5.4","vitest":"^2.0.5","xo":"^0.59.3"},"_id":"hookified@0.6.0","gitHead":"2d795cf0f627cd356d93dcb5fad0d953129f597d","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"028348abbac7480829bfcd124e7c7df939e392aa","size":3192,"noattachment":false,"key":"/hookified/-/hookified-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-0.6.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_0.6.0_1725392709069_0.9368188462054925"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-03T19:45:09.274Z","publish_time":1725392709274,"_source_registry_name":"default","_cnpm_publish_time":1725392709274},"0.5.1":{"name":"hookified","version":"0.5.1","description":"Event and Middleware Hooks","type":"module","main":"./dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsc","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","dependencies":{"emittery":"^1.0.3"},"devDependencies":{"@vitest/coverage-v8":"^2.0.5","docula":"^0.9.0","rimraf":"^6.0.1","typescript":"^5.5.4","vitest":"^2.0.5","xo":"^0.59.3"},"_id":"hookified@0.5.1","gitHead":"2f35e5905be0365351551a610799ec25e5d211a2","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"1735d7b39e53326234000a18c019edb8c958619f","size":3230,"noattachment":false,"key":"/hookified/-/hookified-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-0.5.1.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_0.5.1_1725379433611_0.1592169726789623"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-03T16:03:53.747Z","publish_time":1725379433747,"_source_registry_name":"default","_cnpm_publish_time":1725379433747},"0.5.0":{"name":"hookified","version":"0.5.0","description":"Event and Middleware Hooks","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"xo --fix && vitest run --coverage","test:ci":"xo && vitest run --coverage","clean":"rimraf ./dist ./coverage ./site/dist","build":"rimraf ./dist && tsc","website:build":"docula build","website:serve":"docula serve","prepare":"npm run build"},"keywords":["hooks","emittery","eventemitter","eventemitter3","middleware","events","hooks","event-hooks","hook-system","event-driven","event-emitter","hook-handlers","async-hooks","middleware","emit","event-management","before-after-hooks","event-listeners","custom-hooks","hook-utilities","typescript-hooks"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/hookified.git"},"author":{"name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"homepage":"https://github.com/jaredwray/hookified#readme","dependencies":{"emittery":"^1.0.3"},"devDependencies":{"@vitest/coverage-v8":"^2.0.5","docula":"^0.9.0","rimraf":"^6.0.1","typescript":"^5.5.4","vitest":"^2.0.5","xo":"^0.59.3"},"_id":"hookified@0.5.0","gitHead":"a65ccdc9987943de6b530749def1382397a488e9","_nodeVersion":"20.15.0","_npmVersion":"10.8.2","dist":{"shasum":"36bb1555dfeb17cf3aa689160ff7deccd34a2a50","size":30039,"noattachment":false,"key":"/hookified/-/hookified-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hookified/download/hookified-0.5.0.tgz"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hookified_0.5.0_1725377792106_0.19906680498134577"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-03T15:36:32.307Z","publish_time":1725377792307,"_source_registry_name":"default","_cnpm_publish_time":1725377792307}},"readme":"![Hookified](site/logo.svg)\n\n# Event Emitting and Middleware Hooks\n\n[![tests](https://github.com/jaredwray/hookified/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/hookified/actions/workflows/tests.yaml)\n[![GitHub license](https://img.shields.io/github/license/jaredwray/hookified)](https://github.com/jaredwray/hookified/blob/master/LICENSE)\n[![codecov](https://codecov.io/gh/jaredwray/hookified/branch/main/graph/badge.svg?token=nKkVklTFdA)](https://codecov.io/gh/jaredwray/hookified)\n[![npm](https://img.shields.io/npm/dm/hookified)](https://npmjs.com/package/hookified)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/hookified/badge)](https://www.jsdelivr.com/package/npm/hookified)\n[![npm](https://img.shields.io/npm/v/hookified)](https://npmjs.com/package/hookified)\n\n# Features\n- Simple replacement for EventEmitter\n- Async / Sync Middleware Hooks for Your Methods \n- ESM / CJS with Types and Nodejs 20+\n- Browser Support and Delivered via CDN\n- Ability to throw errors in hooks\n- Ability to pass in a logger (such as Pino) for errors\n- Enforce consistent hook naming conventions with `enforceBeforeAfter`\n- Deprecation warnings for hooks with `deprecatedHooks`\n- Control deprecated hook execution with `allowDeprecated`\n- WaterfallHook for sequential data transformation pipelines\n- No package dependencies and only 250KB in size\n- Fast and Efficient with [Benchmarks](#benchmarks)\n- Maintained on a regular basis!\n\n# Table of Contents\n- [Installation](#installation)\n- [Usage](#usage)\n- [Migrating from v1 to v2](#migrating-from-v1-to-v2)\n- [Using it in the Browser](#using-it-in-the-browser)\n- [Hooks](#hooks)\n  - [Standard Hook](#standard-hook)\n  - [Waterfall Hook](#waterfallhook)\n- [API - Hooks](#api---hooks)\n  - [.allowDeprecated](#allowdeprecated)\n  - [.deprecatedHooks](#deprecatedhooks)\n  - [.enforceBeforeAfter](#enforcebeforeafter)\n  - [.eventLogger](#eventlogger)\n  - [.hooks](#hooks-1)\n  - [.throwOnHookError](#throwOnHookError)\n  - [.useHookClone](#usehookclone)\n  - [.addHook(event, handler)](#addhookevent-handler)\n  - [.afterHook(eventName, ...args)](#afterhookeventname-args)\n  - [.beforeHook(eventName, ...args)](#beforehookeventname-args)\n  - [.callHook(eventName, ...args)](#callhookeventname-args)\n  - [.clearHooks()](#clearhooks)\n  - [.getHook(id)](#gethookid)\n  - [.getHooks(eventName)](#gethookseventname)\n  - [.hook(eventName, ...args)](#hookeventname-args)\n  - [.hookSync(eventName, ...args)](#hooksync-eventname-args)\n  - [.onHook(hook, options?)](#onhookhook-options)\n  - [.onHooks(Array, options?)](#onhooksarray-options)\n  - [.onceHook(hook)](#oncehookhook)\n  - [.prependHook(hook, options?)](#prependhookhook-options)\n  - [.prependOnceHook(hook, options?)](#prependoncehookhook-options)\n  - [.removeEventHooks(eventName)](#removeeventhookseventname)\n  - [.removeHook(hook)](#removehookhook)\n  - [.removeHookById(id)](#removehookbyidid)\n  - [.removeHooks(Array)](#removehooksarray)\n- [API - Events](#api---events)\n  - [.throwOnEmitError](#throwonemitterror)\n  - [.throwOnEmptyListeners](#throwonemptylisteners)\n  - [.on(eventName, handler)](#oneventname-handler)\n  - [.off(eventName, handler)](#offeventname-handler)\n  - [.emit(eventName, ...args)](#emiteventname-args)\n  - [.listeners(eventName)](#listenerseventname)\n  - [.removeAllListeners(eventName)](#removealllistenerseventname)\n  - [.setMaxListeners(maxListeners: number)](#setmaxlistenersmaxlisteners-number)\n  - [.once(eventName, handler)](#oneventname-handler-1)\n  - [.prependListener(eventName, handler)](#prependlistenereventname-handler)\n  - [.prependOnceListener(eventName, handler)](#prependoncelistenereventname-handler)\n  - [.eventNames()](#eventnames)\n  - [.listenerCount(eventName?)](#listenercounteventname)\n  - [.rawListeners(eventName?)](#rawlistenerseventname)\n- [Logging](#logging)\n- [Benchmarks](#benchmarks)\n- [How to Contribute](#how-to-contribute)\n- [License and Copyright](#license-and-copyright)\n\n# Installation\n```bash\nnpm install hookified --save\n```\n\n# Usage\nThis was built because we constantly wanted hooks and events extended on libraires we are building such as [Keyv](https://keyv.org) and [Cacheable](https://cacheable.org). This is a simple way to add hooks and events to your classes.\n\n```javascript\nimport { Hookified } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() {\n    super();\n  }\n\n  async myMethodEmittingEvent() {\n    this.emit('message', 'Hello World');\n  }\n\n  //with hooks you can pass data in and if they are subscribed via onHook they can modify the data\n  async myMethodWithHooks(): Promise<any> {\n    let data = { some: 'data' };\n    // do something\n    await this.hook('before:myMethod2', data);\n\n    return data;\n  }\n}\n```\n\nYou can even pass in multiple arguments to the hooks:\n\n```javascript\nimport { Hookified } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() {\n    super();\n  }\n\n  async myMethodWithHooks(): Promise<any> {\n    let data = { some: 'data' };\n    let data2 = { some: 'data2' };\n    // do something\n    await this.hook('before:myMethod2', data, data2);\n\n    return data;\n  }\n}\n```\n\n# Using it in the Browser\n\n```html\n<script type=\"module\">\n  import { Hookified } from 'https://cdn.jsdelivr.net/npm/hookified/dist/browser/index.js';\n\n  class MyClass extends Hookified {\n    constructor() {\n      super();\n    }\n\n    async myMethodEmittingEvent() {\n      this.emit('message', 'Hello World');\n    }\n\n    //with hooks you can pass data in and if they are subscribed via onHook they can modify the data\n    async myMethodWithHooks(): Promise<any> {\n      let data = { some: 'data' };\n      // do something\n      await this.hook('before:myMethod2', data);\n\n      return data;\n    }\n  }\n</script>\n```\n\nif you are not using ESM modules, you can use the following:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/hookified/dist/browser/index.global.js\"></script>\n<script>\n  class MyClass extends Hookified {\n    constructor() {\n      super();\n    }\n\n    async myMethodEmittingEvent() {\n      this.emit('message', 'Hello World');\n    }\n\n    //with hooks you can pass data in and if they are subscribed via onHook they can modify the data\n    async myMethodWithHooks(): Promise<any> {\n      let data = { some: 'data' };\n      // do something\n      await this.hook('before:myMethod2', data);\n\n      return data;\n    }\n  }\n</script>\n```\n\n# Hooks\n\n## Standard Hook\n\nThe `Hook` class provides a convenient way to create hook entries. It implements the `IHook` interface.\n\nThe `IHook` interface has the following properties:\n\n| Property | Type | Required | Description |\n|----------|------|----------|-------------|\n| `id` | `string` | No | Unique identifier for the hook. Auto-generated via `crypto.randomUUID()` if not provided. |\n| `event` | `string` | Yes | The event name for the hook. |\n| `handler` | `HookFn` | Yes | The handler function for the hook. |\n\nWhen a hook is registered, it is assigned an `id` (auto-generated if not provided). The `id` can be used to look up or remove hooks via `getHook` and `removeHookById`. If you register a hook with the same `id` on the same event, it will replace the existing hook in-place (preserving its position).\n\n**Using the `Hook` class:**\n\n```javascript\nimport { Hook, Hookified } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() { super(); }\n}\n\nconst myClass = new MyClass();\n\n// Without id (auto-generated)\nconst hook = new Hook('before:save', async (data) => {\n  data.validated = true;\n});\n\n// With id\nconst hook2 = new Hook('after:save', async (data) => {\n  console.log('saved');\n}, 'my-after-save-hook');\n\n// Register with onHook\nmyClass.onHook(hook);\n\n// Or register multiple hooks with onHooks\nconst hooks = [\n  new Hook('before:save', async (data) => { data.validated = true; }),\n  new Hook('after:save', async (data) => { console.log('saved'); }),\n];\nmyClass.onHooks(hooks);\n\n// Remove hooks\nmyClass.removeHooks(hooks);\n```\n\n**Using plain TypeScript with the `IHook` interface:**\n\n```typescript\nimport { Hookified, type IHook } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() { super(); }\n}\n\nconst myClass = new MyClass();\n\nconst hook: IHook = {\n  id: 'my-validation-hook', // optional — auto-generated if omitted\n  event: 'before:save',\n  handler: async (data) => {\n    data.validated = true;\n  },\n};\n\nconst stored = myClass.onHook(hook);\nconsole.log(stored?.id); // 'my-validation-hook'\n\n// Later, remove by id\nmyClass.removeHookById('my-validation-hook');\n```\n\n## Waterfall Hook\n\nThe `WaterfallHook` class chains multiple hook functions sequentially in a waterfall pipeline. Each hook receives a context containing the original arguments and the accumulated results from all previous hooks. It implements the `IHook` interface, so it integrates directly with `Hookified.onHook()`.\n\nThe `WaterfallHookContext` has the following properties:\n\n| Property | Type | Description |\n|----------|------|-------------|\n| `initialArgs` | `any` | The original arguments passed to the waterfall execution. |\n| `results` | `WaterfallHookResult[]` | Array of `{ hook, result }` entries from previous hooks. Empty for the first hook. |\n\n**Basic usage:**\n\n```javascript\nimport { WaterfallHook } from 'hookified';\n\nconst wh = new WaterfallHook('process', ({ results, initialArgs }) => {\n  // Final handler receives all accumulated results\n  const lastResult = results[results.length - 1].result;\n  console.log('Final:', lastResult);\n});\n\n// Add transformation hooks to the pipeline\nwh.addHook(({ initialArgs }) => {\n  return initialArgs + 1; // 5 -> 6\n});\n\nwh.addHook(({ results }) => {\n  return results[results.length - 1].result * 2; // 6 -> 12\n});\n\n// Execute the waterfall by calling handler directly\nawait wh.handler(5); // Final: 12\n```\n\n**Integrating with Hookified via `onHook()`:**\n\n```javascript\nimport { Hookified, WaterfallHook } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() { super(); }\n}\n\nconst myClass = new MyClass();\n\nconst wh = new WaterfallHook('save', ({ results }) => {\n  const data = results[results.length - 1].result;\n  console.log('Saved:', data);\n});\n\nwh.addHook(({ initialArgs }) => {\n  return { ...initialArgs, validated: true };\n});\n\nwh.addHook(({ results }) => {\n  return { ...results[results.length - 1].result, timestamp: Date.now() };\n});\n\n// Register with Hookified — works because WaterfallHook implements IHook\nmyClass.onHook(wh);\n\n// When hook() fires, the full waterfall pipeline executes\nawait myClass.hook('save', { name: 'test' });\n// Saved: { name: 'test', validated: true, timestamp: ... }\n```\n\n**Managing hooks:**\n\n```javascript\nconst wh = new WaterfallHook('process', ({ results }) => results);\n\nconst myHook = ({ initialArgs }) => initialArgs + 1;\nwh.addHook(myHook);\n\n// Remove a hook by reference\nwh.removeHook(myHook); // returns true\n\n// Access the hooks array\nconsole.log(wh.hooks.length); // 0\n```\n\n# API - Hooks\n\n> All examples below assume the following setup unless otherwise noted:\n> ```javascript\n> import { Hookified } from 'hookified';\n> class MyClass extends Hookified {\n>   constructor(options) { super(options); }\n> }\n> const myClass = new MyClass();\n> ```\n\n## .allowDeprecated\n\nControls whether deprecated hooks are allowed to be registered and executed. Default is true. When set to false, deprecated hooks will still emit warnings but will be prevented from registration and execution.\n\n```javascript\nimport { Hookified } from 'hookified';\n\nconst deprecatedHooks = new Map([\n  ['oldHook', 'Use newHook instead']\n]);\n\nclass MyClass extends Hookified {\n  constructor() {\n    super({ deprecatedHooks, allowDeprecated: false });\n  }\n}\n\nconst myClass = new MyClass();\n\nconsole.log(myClass.allowDeprecated); // false\n\n// Listen for deprecation warnings (still emitted even when blocked)\nmyClass.on('warn', (event) => {\n  console.log(`Warning: ${event.message}`);\n});\n\n// Try to register a deprecated hook - will emit warning but not register\nmyClass.onHook({ event: 'oldHook', handler: () => {\n  console.log('This will never execute');\n}});\n// Output: Warning: Hook \"oldHook\" is deprecated: Use newHook instead\n\n// Verify hook was not registered\nconsole.log(myClass.getHooks('oldHook')); // undefined\n\n// Try to execute a deprecated hook - will emit warning but not execute\nawait myClass.hook('oldHook');\n// Output: Warning: Hook \"oldHook\" is deprecated: Use newHook instead\n// (but no handlers execute)\n\n// Non-deprecated hooks work normally\nmyClass.onHook({ event: 'validHook', handler: () => {\n  console.log('This works fine');\n}});\n\nconsole.log(myClass.getHooks('validHook')); // [handler function]\n\n// You can dynamically change the setting\nmyClass.allowDeprecated = true;\n\n// Now deprecated hooks can be registered and executed\nmyClass.onHook({ event: 'oldHook', handler: () => {\n  console.log('Now this works');\n}});\n\nconsole.log(myClass.getHooks('oldHook')); // [handler function]\n```\n\n**Behavior when `allowDeprecated` is false:**\n- **Registration**: All hook registration methods (`onHook`, `addHook`, `prependHook`, etc.) will emit warnings but skip registration\n- **Execution**: Hook execution methods (`hook`, `callHook`) will emit warnings but skip execution\n- **Removal/Reading**: `removeHook`, `removeHooks`, and `getHooks` always work regardless of deprecation status\n- **Warnings**: Deprecation warnings are always emitted regardless of `allowDeprecated` setting\n\n**Use cases:**\n- **Development**: Keep `allowDeprecated: true` to maintain functionality while seeing warnings\n- **Testing**: Set `allowDeprecated: false` to ensure no deprecated hooks are accidentally used\n- **Migration**: Gradually disable deprecated hooks during API transitions\n- **Production**: Disable deprecated hooks to prevent legacy code execution\n\n## .deprecatedHooks\n\nA Map of deprecated hook names to deprecation messages. When a deprecated hook is used, a warning will be emitted via the 'warn' event and logged to the logger (if available). Default is an empty Map.\n\n```javascript\nimport { Hookified } from 'hookified';\n\n// Define deprecated hooks with custom messages\nconst deprecatedHooks = new Map([\n  ['oldHook', 'Use newHook instead'],\n  ['legacyMethod', 'This hook will be removed in v2.0'],\n  ['deprecatedFeature', ''] // Empty message - will just say \"deprecated\"\n]);\n\nclass MyClass extends Hookified {\n  constructor() {\n    super({ deprecatedHooks });\n  }\n}\n\nconst myClass = new MyClass();\n\nconsole.log(myClass.deprecatedHooks); // Map with deprecated hooks\n\n// Listen for deprecation warnings\nmyClass.on('warn', (event) => {\n  console.log(`Deprecation warning: ${event.message}`);\n  // event.hook contains the hook name\n  // event.message contains the full warning message\n});\n\n// Using a deprecated hook will emit warnings\nmyClass.onHook({ event: 'oldHook', handler: () => {\n  console.log('This hook is deprecated');\n}});\n// Output: Hook \"oldHook\" is deprecated: Use newHook instead\n\n// Using a deprecated hook with empty message\nmyClass.onHook({ event: 'deprecatedFeature', handler: () => {\n  console.log('This hook is deprecated');\n}});\n// Output: Hook \"deprecatedFeature\" is deprecated\n\n// You can also set deprecated hooks dynamically\nmyClass.deprecatedHooks.set('anotherOldHook', 'Please migrate to the new API');\n\n// Works with logger if provided\nimport pino from 'pino';\nconst logger = pino();\n\nconst myClassWithLogger = new Hookified({\n  deprecatedHooks,\n  eventLogger: logger\n});\n\n// Deprecation warnings will be logged to logger.warn\n```\n\nThe deprecation warning system applies to the following hook-related methods:\n- Registration: `onHook()`, `addHook()`, `onHooks()`, `prependHook()`, `onceHook()`, `prependOnceHook()`\n- Execution: `hook()`, `callHook()`\n\nNote: `getHooks()`, `removeHook()`, and `removeHooks()` do not check for deprecated hooks and always operate normally.\n\nDeprecation warnings are emitted in two ways:\n1. **Event**: A 'warn' event is emitted with `{ hook: string, message: string }`\n2. **Logger**: Logged to `eventLogger.warn()` if an `eventLogger` is configured and has a `warn` method\n\n## .enforceBeforeAfter\n\nIf set to true, enforces that all hook names must start with 'before' or 'after'. This is useful for maintaining consistent hook naming conventions in your application. Default is false.\n\n```javascript\nimport { Hookified } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() {\n    super({ enforceBeforeAfter: true });\n  }\n}\n\nconst myClass = new MyClass();\n\nconsole.log(myClass.enforceBeforeAfter); // true\n\n// These will work fine\nmyClass.onHook({ event: 'beforeSave', handler: async () => {\n  console.log('Before save hook');\n}});\n\nmyClass.onHook({ event: 'afterSave', handler: async () => {\n  console.log('After save hook');\n}});\n\nmyClass.onHook({ event: 'before:validation', handler: async () => {\n  console.log('Before validation hook');\n}});\n\n// This will throw an error\ntry {\n  myClass.onHook({ event: 'customEvent', handler: async () => {\n    console.log('This will not work');\n  }});\n} catch (error) {\n  console.log(error.message); // Hook event \"customEvent\" must start with \"before\" or \"after\" when enforceBeforeAfter is enabled\n}\n\n// You can also change it dynamically\nmyClass.enforceBeforeAfter = false;\nmyClass.onHook({ event: 'customEvent', handler: async () => {\n  console.log('This will work now');\n}});\n```\n\nThe validation applies to all hook-related methods:\n- `onHook()`, `addHook()`, `onHooks()`\n- `prependHook()`, `onceHook()`, `prependOnceHook()`\n- `hook()`, `callHook()`\n- `getHooks()`, `removeHook()`, `removeHooks()`\n\nNote: The `beforeHook()` and `afterHook()` helper methods automatically generate proper hook names and work regardless of the `enforceBeforeAfter` setting.\n\n## .eventLogger\nIf set, errors thrown in hooks will be logged to the logger. If not set, errors will be only emitted.\n\n```javascript\nimport pino from 'pino';\n\nconst myClass = new MyClass({ eventLogger: pino() });\n\nmyClass.onHook({ event: 'before:myMethod2', handler: async () => {\n  throw new Error('error');\n}});\n\n// when you call before:myMethod2 it will log the error to the logger\nawait myClass.hook('before:myMethod2');\n```\n\n## .hooks\n\nGet all hooks. Returns a `Map<string, IHook[]>` where each key is an event name and the value is an array of `IHook` objects.\n\n```javascript\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\n\nconsole.log(myClass.hooks); // Map { 'before:myMethod2' => [{ event: 'before:myMethod2', handler: [Function] }] }\n```\n\n## .throwOnHookError\n\nIf set to true, errors thrown in hooks will be thrown. If set to false, errors will be only emitted.\n\n```javascript\nconst myClass = new MyClass({ throwOnHookError: true });\n\nconsole.log(myClass.throwOnHookError); // true\n\ntry {\n  myClass.onHook({ event: 'error-event', handler: async () => {\n    throw new Error('error');\n  }});\n\n  await myClass.hook('error-event');\n} catch (error) {\n  console.log(error.message); // error\n}\n\nmyClass.throwOnHookError = false;\nconsole.log(myClass.throwOnHookError); // false\n```\n\n## .useHookClone\n\nControls whether hook objects are cloned before storing internally. Default is `true`. When `true`, a shallow copy of the `IHook` object is stored, preventing external mutation from affecting registered hooks. When `false`, the original reference is stored directly.\n\n```javascript\nconst myClass = new MyClass({ useHookClone: false });\n\nconst hook = { event: 'before:save', handler: async (data) => {} };\nmyClass.onHook(hook);\n\n// With useHookClone: false, the stored hook is the same reference\nconst storedHooks = myClass.getHooks('before:save');\nconsole.log(storedHooks[0] === hook); // true\n\n// You can dynamically change the setting\nmyClass.useHookClone = true;\n```\n\n## .addHook(event, handler)\n\nThis is an alias for `.onHook()` that takes an event name and handler function directly.\n\n```javascript\nmyClass.addHook('before:myMethod2', async (data) => {\n  data.some = 'new data';\n});\n```\n\n## .afterHook(eventName, ...args)\n\nThis is a helper function that will prepend a hook name with `after:`.\n\n```javascript\n// Inside your class method — the event name will be `after:myMethod2`\nawait this.afterHook('myMethod2', data);\n```\n\n## .beforeHook(eventName, ...args)\n\nThis is a helper function that will prepend a hook name with `before:`.\n\n```javascript\n// Inside your class method — the event name will be `before:myMethod2`\nawait this.beforeHook('myMethod2', data);\n```\n\n## .callHook(eventName, ...args)\n\nThis is an alias for `.hook(eventName, ...args)` for backwards compatibility.\n\n## .clearHooks()\n\nClear all hooks across all events.\n\n```javascript\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\n\nmyClass.clearHooks();\n```\n\n## .getHook(id)\n\nGet a specific hook by `id`, searching across all events. Returns the `IHook` if found, or `undefined`.\n\n```javascript\nconst myClass = new MyClass();\n\nmyClass.onHook({\n  id: 'my-hook',\n  event: 'before:save',\n  handler: async (data) => { data.validated = true; },\n});\n\nconst hook = myClass.getHook('my-hook');\nconsole.log(hook?.id); // 'my-hook'\nconsole.log(hook?.event); // 'before:save'\nconsole.log(hook?.handler); // [Function]\n```\n\n## .getHooks(eventName)\n\nGet all hooks for an event. Returns an `IHook[]` array, or `undefined` if no hooks are registered for the event.\n\n```javascript\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\n\nconsole.log(myClass.getHooks('before:myMethod2')); // [{ event: 'before:myMethod2', handler: [Function] }]\n```\n\n## .hook(eventName, ...args)\n\nRun a hook event.\n\n```javascript\n// Inside your class method\nawait this.hook('before:myMethod2', data);\n```\n\nYou can pass multiple arguments to the hook:\n\n```javascript\n// Inside your class method\nawait this.hook('before:myMethod2', data, data2);\n\n// The handler receives all arguments\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data, data2) => {\n  data.some = 'new data';\n  data2.some = 'new data2';\n}});\n```\n\n## .hookSync(eventName, ...args)\n\nRun a hook event synchronously. Async handlers (functions declared with `async` keyword) are silently skipped and only synchronous handlers are executed.\n\n> **Note:** The `.hook()` method is preferred as it executes both sync and async functions. Use `.hookSync()` only when you specifically need synchronous execution.\n\n```javascript\n// This sync handler will execute\nmyClass.onHook({ event: 'before:myMethod', handler: (data) => {\n  data.some = 'modified';\n}});\n\n// This async handler will be silently skipped\nmyClass.onHook({ event: 'before:myMethod', handler: async (data) => {\n  data.some = 'will not run';\n}});\n\n// Inside your class method\nthis.hookSync('before:myMethod', data); // Only sync handler runs\n```\n\n## .onHook(hook, options?)\n\nSubscribe to a hook event. Takes an `IHook` object and an optional `OnHookOptions` object. Returns the stored `IHook` (with `id` assigned), or `undefined` if the hook was blocked by deprecation. The returned reference is the exact object stored internally, which is useful for later removal with `.removeHook()` or `.removeHookById()`. To register multiple hooks at once, use `.onHooks()`.\n\nIf the hook has an `id`, it will be used as-is. If not, a UUID is auto-generated via `crypto.randomUUID()`. If a hook with the same `id` already exists on the same event, it will be **replaced in-place** (preserving its position in the array).\n\n**Options (`OnHookOptions`)**:\n- `useHookClone` (boolean, optional) — Per-call override for the instance-level `useHookClone` setting. When `true`, the hook object is cloned before storing. When `false`, the original reference is stored directly. When omitted, falls back to the instance-level setting.\n- `position` (`\"Top\"` | `\"Bottom\"` | `number`, optional) — Controls where the hook is inserted in the handlers array. `\"Top\"` inserts at the beginning, `\"Bottom\"` appends to the end (default). A number inserts at that index, clamped to the array bounds.\n\n```javascript\n// Single hook — returns the stored IHook with id\nconst stored = myClass.onHook({\n  event: 'before:myMethod2',\n  handler: async (data) => {\n    data.some = 'new data';\n  },\n});\nconsole.log(stored.id); // auto-generated UUID\n\n// With a custom id\nconst stored2 = myClass.onHook({\n  id: 'my-validation',\n  event: 'before:save',\n  handler: async (data) => { data.validated = true; },\n});\n\n// Replace hook by registering with the same id\nmyClass.onHook({\n  id: 'my-validation',\n  event: 'before:save',\n  handler: async (data) => { data.validated = true; data.extra = true; },\n});\n// Only one hook with id 'my-validation' exists, at the same position\n\n// Remove by id\nmyClass.removeHookById('my-validation');\n\n// Use the returned reference to remove the hook later\nmyClass.removeHook(stored);\n\n// Override useHookClone per-call — store original reference even though instance default is true\nconst hook = { event: 'before:save', handler: async (data) => {} };\nmyClass.onHook(hook, { useHookClone: false });\nconsole.log(myClass.getHooks('before:save')[0] === hook); // true\n\n// Insert at the top of the handlers array\nmyClass.onHook({ event: 'before:save', handler: async (data) => {} }, { position: 'Top' });\n\n// Insert at a specific index\nmyClass.onHook({ event: 'before:save', handler: async (data) => {} }, { position: 1 });\n```\n\n## .onHooks(Array, options?)\n\nSubscribe to multiple hook events at once. Takes an array of `IHook` objects and an optional `OnHookOptions` object that is applied to each hook.\n\n```javascript\nconst hooks = [\n  {\n    event: 'before:myMethodWithHooks',\n    handler: async (data) => {\n      data.some = 'new data1';\n    },\n  },\n  {\n    event: 'after:myMethodWithHooks',\n    handler: async (data) => {\n      data.some = 'new data2';\n    },\n  },\n];\nmyClass.onHooks(hooks);\n\n// With options — insert all hooks at the top\nmyClass.onHooks(hooks, { position: 'Top' });\n\n// With options — skip cloning for all hooks in this batch\nmyClass.onHooks(hooks, { useHookClone: false });\n```\n\n## .onceHook(hook)\n\nSubscribe to a hook event once. Takes an `IHook` object with `event` and `handler` properties. After the handler is called once, it is automatically removed.\n\n```javascript\nmyClass.onceHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\n\nawait myClass.hook('before:myMethod2', data); // handler runs once then is removed\nconsole.log(myClass.hooks.size); // 0\n```\n\n## .prependHook(hook, options?)\n\nSubscribe to a hook event before all other hooks. Takes an `IHook` object with `event` and `handler` properties. Returns the stored `IHook` (with generated `id`), or `undefined` if blocked by deprecation. Equivalent to calling `onHook(hook, { position: \"Top\" })`.\n\nAn optional `PrependHookOptions` object can be passed with:\n- `useHookClone` (boolean) — per-call override for hook cloning behavior\n\n```javascript\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\nmyClass.prependHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'will run before new data';\n}});\n```\n\n## .prependOnceHook(hook, options?)\n\nSubscribe to a hook event before all other hooks. Takes an `IHook` object with `event` and `handler` properties. After the handler is called once, it is automatically removed. Returns the stored `IHook` (with generated `id`), or `undefined` if blocked by deprecation.\n\nAn optional `PrependHookOptions` object can be passed with:\n- `useHookClone` (boolean) — per-call override for hook cloning behavior\n\n```javascript\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\nmyClass.prependOnceHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'will run before new data';\n}});\n```\n\n## .removeEventHooks(eventName)\n\nRemoves all hooks for a specific event and returns the removed hooks as an `IHook[]` array. Returns an empty array if no hooks are registered for the event.\n\n```javascript\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'new data';\n}});\nmyClass.onHook({ event: 'before:myMethod2', handler: async (data) => {\n  data.some = 'more data';\n}});\n\n// Remove all hooks for a specific event\nconst removed = myClass.removeEventHooks('before:myMethod2');\nconsole.log(removed.length); // 2\n```\n\n## .removeHook(hook)\n\nUnsubscribe a handler from a hook event. Takes an `IHook` object with `event` and `handler` properties. Returns the removed hook as an `IHook` object, or `undefined` if the handler was not found.\n\n```javascript\nconst handler = async (data) => {\n  data.some = 'new data';\n};\n\nmyClass.onHook({ event: 'before:myMethod2', handler });\n\nconst removed = myClass.removeHook({ event: 'before:myMethod2', handler });\nconsole.log(removed); // { event: 'before:myMethod2', handler: [Function] }\n```\n\n## .removeHookById(id)\n\nRemove one or more hooks by `id`, searching across all events. Accepts a single `string` or an array of `string` ids.\n\n- **Single id**: Returns the removed `IHook`, or `undefined` if not found.\n- **Array of ids**: Returns an `IHook[]` array of the hooks that were successfully removed.\n\nWhen the last hook for an event is removed, the event key is cleaned up.\n\n```javascript\nconst myClass = new MyClass();\n\nmyClass.onHook({ id: 'hook-a', event: 'before:save', handler: async () => {} });\nmyClass.onHook({ id: 'hook-b', event: 'after:save', handler: async () => {} });\nmyClass.onHook({ id: 'hook-c', event: 'before:save', handler: async () => {} });\n\n// Remove a single hook by id\nconst removed = myClass.removeHookById('hook-a');\nconsole.log(removed?.id); // 'hook-a'\n\n// Remove multiple hooks by ids\nconst removedMany = myClass.removeHookById(['hook-b', 'hook-c']);\nconsole.log(removedMany.length); // 2\n```\n\n## .removeHooks(Array)\n\nUnsubscribe from multiple hooks. Returns an array of the hooks that were successfully removed.\n\n```javascript\nconst hooks = [\n  { event: 'before:save', handler: async (data) => { data.some = 'new data1'; } },\n  { event: 'after:save', handler: async (data) => { data.some = 'new data2'; } },\n];\nmyClass.onHooks(hooks);\n\nconst removed = myClass.removeHooks(hooks);\nconsole.log(removed.length); // 2\n```\n\n# API - Events\n\n> All examples below assume the following setup unless otherwise noted:\n> ```javascript\n> import { Hookified } from 'hookified';\n> class MyClass extends Hookified {\n>   constructor(options) { super(options); }\n> }\n> const myClass = new MyClass();\n> ```\n\n## .throwOnEmitError\n\nIf set to true, errors emitted as `error` will always be thrown, even if there are listeners. If set to false (default), errors will only be emitted to listeners.\n\n```javascript\nconst myClass = new MyClass({ throwOnEmitError: true });\n\nmyClass.on('error', (err) => {\n  console.log('listener received:', err.message);\n});\n\ntry {\n  myClass.emit('error', new Error('This will throw despite having a listener'));\n} catch (error) {\n  console.log(error.message); // This will throw despite having a listener\n}\n```\n\n## .throwOnEmptyListeners\n\nIf set to true, errors will be thrown when emitting an `error` event with no listeners. This follows the standard Node.js EventEmitter behavior. Default is `true`.\n\n```javascript\nconst myClass = new MyClass({ throwOnEmptyListeners: true });\n\nconsole.log(myClass.throwOnEmptyListeners); // true (default)\n\n// This will throw because there are no error listeners\ntry {\n  myClass.emit('error', new Error('Something went wrong'));\n} catch (error) {\n  console.log(error.message); // Something went wrong\n}\n\n// Add an error listener - now it won't throw\nmyClass.on('error', (error) => {\n  console.log('Error caught:', error.message);\n});\n\nmyClass.emit('error', new Error('This will be caught')); // No throw, listener handles it\n\n// You can also change it dynamically\nmyClass.throwOnEmptyListeners = false;\nconsole.log(myClass.throwOnEmptyListeners); // false\n```\n\n**Difference between `throwOnEmitError` and `throwOnEmptyListeners`:**\n- `throwOnEmitError`: Throws when emitting 'error' event every time.\n- `throwOnEmptyListeners`: Throws only when there are NO error listeners registered\n\nWhen both are set to `true`, `throwOnEmitError` takes precedence.\n\n## .on(eventName, handler)\n\nSubscribe to an event.\n\n```javascript\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n```\n\n## .off(eventName, handler)\n\nUnsubscribe from an event.\n\n```javascript\nconst handler = (message) => {\n  console.log(message);\n};\n\nmyClass.on('message', handler);\nmyClass.off('message', handler);\n```\n\n## .emit(eventName, ...args)\n\nEmit an event.\n\n```javascript\nmyClass.emit('message', 'Hello World');\n```\n\n## .listeners(eventName)\n\nGet all listeners for an event.\n\n```javascript\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n\nconsole.log(myClass.listeners('message'));\n```\n\n## .removeAllListeners(eventName)\n\nRemove all listeners for an event.\n\n```javascript\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n\nmyClass.removeAllListeners('message');\n```\n\n## .setMaxListeners(maxListeners: number)\n\nSet the maximum number of listeners for a single event. Default is `0` (unlimited). Negative values are treated as `0`. Setting to `0` disables the limit and the warning. When the limit is exceeded, a `MaxListenersExceededWarning` is emitted via `console.warn` but the listener is still added. This matches standard Node.js EventEmitter behavior.\n\n```javascript\nmyClass.setMaxListeners(1);\n\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n\nmyClass.on('message', (message) => {\n  console.log(message);\n}); // warning emitted but listener is still added\n\nconsole.log(myClass.listenerCount('message')); // 2\n```\n\n## .once(eventName, handler)\n\nSubscribe to an event once.\n\n```javascript\nmyClass.once('message', (message) => {\n  console.log(message);\n});\n\nmyClass.emit('message', 'Hello World'); // handler runs\nmyClass.emit('message', 'Hello World'); // handler does not run\n```\n\n## .prependListener(eventName, handler)\n\nPrepend a listener to an event. This will be called before any other listeners.\n\n```javascript\nmyClass.prependListener('message', (message) => {\n  console.log(message);\n});\n```\n\n## .prependOnceListener(eventName, handler)\n\nPrepend a listener to an event once. This will be called before any other listeners.\n\n```javascript\nmyClass.prependOnceListener('message', (message) => {\n  console.log(message);\n});\n\nmyClass.emit('message', 'Hello World');\n```\n\n## .eventNames()\n\nGet all event names.\n\n```javascript\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n\nconsole.log(myClass.eventNames()); // ['message']\n```\n\n## .listenerCount(eventName?)\n\nGet the count of listeners for an event or all events if eventName not provided.\n\n```javascript\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n\nconsole.log(myClass.listenerCount('message')); // 1\n```\n\n## .rawListeners(eventName?)\n\nGet all listeners for an event or all events if eventName not provided.\n\n```javascript\nmyClass.on('message', (message) => {\n  console.log(message);\n});\n\nconsole.log(myClass.rawListeners('message'));\n```\n\n# Logging\n\nHookified integrates logging directly into the event system. When an `eventLogger` is configured, all emitted events are automatically logged to the appropriate log level based on the event name.\n\n## How It Works\n\nWhen you emit an event, Hookified automatically sends the event data to the configured `eventLogger` using the appropriate log method:\n\n| Event Name | Logger Method |\n|------------|---------------|\n| `error`    | `eventLogger.error()` |\n| `warn`     | `eventLogger.warn()` |\n| `debug`    | `eventLogger.debug()` |\n| `trace`    | `eventLogger.trace()` |\n| `fatal`    | `eventLogger.fatal()` |\n| Any other  | `eventLogger.info()` |\n\nThe logger receives two arguments:\n1. **message**: A string extracted from the event data (error messages, object messages, or JSON stringified data)\n2. **context**: An object containing `{ event: eventName, data: originalData }`\n\n## Setting Up a Logger\n\nAny logger that implements the `Logger` interface is compatible. This includes popular loggers like [Pino](https://github.com/pinojs/pino), [Winston](https://github.com/winstonjs/winston), [Bunyan](https://github.com/trentm/node-bunyan), and others.\n\n```typescript\ntype Logger = {\n  trace: (message: string, ...args: unknown[]) => void;\n  debug: (message: string, ...args: unknown[]) => void;\n  info: (message: string, ...args: unknown[]) => void;\n  warn: (message: string, ...args: unknown[]) => void;\n  error: (message: string, ...args: unknown[]) => void;\n  fatal: (message: string, ...args: unknown[]) => void;\n};\n```\n\n## Usage Example with Pino\n\n```javascript\nimport { Hookified } from 'hookified';\nimport pino from 'pino';\n\nconst logger = pino();\n\nclass MyService extends Hookified {\n  constructor() {\n    super({ eventLogger: logger });\n  }\n\n  async processData(data) {\n    // This will log to logger.info with the data\n    this.emit('info', { action: 'processing', data });\n\n    try {\n      // ... process data\n      this.emit('debug', { action: 'completed', result: 'success' });\n    } catch (err) {\n      // This will log to logger.error with the error message\n      this.emit('error', err);\n    }\n  }\n}\n\nconst service = new MyService();\n\n// All events are automatically logged\nservice.emit('info', 'Service started');        // -> logger.info()\nservice.emit('warn', { message: 'Low memory' }); // -> logger.warn()\nservice.emit('error', new Error('Failed'));      // -> logger.error()\nservice.emit('custom-event', { foo: 'bar' });    // -> logger.info() (default)\n```\n\nYou can also set or change the eventLogger after instantiation:\n\n```javascript\nconst service = new MyService();\nservice.eventLogger = pino({ level: 'debug' });\n\n// Or remove the eventLogger\nservice.eventLogger = undefined;\n```\n\n# Benchmarks\n\nWe are doing very simple benchmarking to see how this compares to other libraries using `tinybench`. This is not a full benchmark but just a simple way to see how it performs.\n\n## Hooks\n\n|         name         |  summary  |  ops/sec  |  time/op  |  margin  |  samples  |\n|----------------------|:---------:|----------:|----------:|:--------:|----------:|\n|  Hookified (v2.0.1)  |    ????     |       5M  |    221ns  |  ±0.01%  |       5M  |\n|  Hookable (v6.0.1)   |   -59%    |       2M  |    569ns  |  ±0.01%  |       2M  |\n\n## Emits\n\nThis shows how on par `hookified` is to the native `EventEmitter` and popular `eventemitter3`. These are simple emitting benchmarks to see how it performs. Our goal is to be as close or better than the other libraries including native (EventEmitter).\n\n|           name            |  summary  |  ops/sec  |  time/op  |  margin  |  samples  |\n|---------------------------|:---------:|----------:|----------:|:--------:|----------:|\n|  Hookified (v2.0.1)       |    ????     |      12M  |     93ns  |  ±0.01%  |      11M  |\n|  EventEmitter3 (v5.0.4)   |   -2.4%   |      12M  |     91ns  |  ±0.01%  |      11M  |\n|  EventEmitter (v24.11.1)  |   -2.6%   |      12M  |     90ns  |  ±0.01%  |      11M  |\n|  Emittery (v1.2.0)        |   -91%    |       1M  |      1µs  |  ±0.01%  |     990K  |\n\n_Note: the `EventEmitter` version is Nodejs versioning._\n\n# Migrating from v1 to v2\n\n## Quick Guide\n\nv2 overhauls hook storage to use `IHook` objects instead of raw functions. This enables hook IDs, ordering via position, cloning control, and new hook types like `WaterfallHook`. The main change most users will notice is that `onHook` now takes an `IHook` object instead of positional arguments:\n\n```typescript\n// v1 — positional arguments\nhookified.onHook('before:save', async (data) => {});\n\n// v2 — IHook object (or use addHook for positional args)\nhookified.onHook({ event: 'before:save', handler: async (data) => {} });\nhookified.addHook('before:save', async (data) => {}); // still works\n```\n\n**Other common changes:**\n\n| v1 | v2 |\n|---|---|\n| `throwHookErrors` | `throwOnHookError` |\n| `logger` | `eventLogger` |\n| `onHookEntry(hook)` | `onHook(hook)` |\n| `HookEntry` type | `IHook` interface |\n| `Hook` type (fn) | `HookFn` type |\n| `getHooks()` returns `HookFn[]` | `getHooks()` returns `IHook[]` |\n| `removeHook(event, handler)` | `removeHook({ event, handler })` |\n\nSee below for full details on each change.\n\n**[Breaking Changes](#breaking-changes)**\n- [`throwHookErrors` removed — use `throwOnHookError` instead](#throwhookerrors-removed--use-throwonhookerror-instead)\n- [`throwOnEmptyListeners` now defaults to `true`](#throwonemptylisteners-now-defaults-to-true)\n- [`logger` renamed to `eventLogger`](#logger-renamed-to-eventlogger)\n- [`maxListeners` default changed from `100` to `0` (unlimited) and no longer truncates](#maxlisteners-default-changed-from-100-to-0-unlimited-and-no-longer-truncates)\n- [`onHookEntry` removed — use `onHook` instead](#onhookentry-removed--use-onhook-instead)\n- [`onHook` signature changed](#onhook-signature-changed)\n- [`HookEntry` type and `Hook` type removed](#hookentry-type-and-hook-type-removed)\n- [`removeHook` and `removeHooks` now return removed hooks](#removehook-and-removehooks-now-return-removed-hooks)\n- [`removeHook`, `removeHooks`, and `getHooks` no longer check for deprecated hooks](#removehook-removehooks-and-gethooks-no-longer-check-for-deprecated-hooks)\n- [Internal hook storage now uses `IHook` objects](#internal-hook-storage-now-uses-ihook-objects)\n- [`onceHook`, `prependHook`, `prependOnceHook`, and `removeHook` now take `IHook`](#oncehook-prependhook-prependoncehook-and-removehook-now-take-ihook)\n- [`onHook` now returns the stored hook](#onhook-now-returns-the-stored-hook)\n\n**[New Features](#new-features)**\n- [standard `Hook` class now available](#standard-hook)\n- [`WaterfallHook` class for sequential data transformation pipelines](#waterfallhook-class)\n- [`useHookClone` option](#usehookclone-option)\n- [`onHook` now accepts `OnHookOptions`](#onhook-now-accepts-onhookoptions)\n- [`IHook` now has an `id` property](#ihook-now-has-an-id-property)\n- [`removeEventHooks` method](#removeeventhooks-method)\n\n## Breaking Changes\n\n| Change | Summary |\n|---|---|\n| `throwHookErrors` | Renamed to `throwOnHookError` |\n| `throwOnEmptyListeners` | Default changed from `false` to `true` |\n| `logger` | Renamed to `eventLogger` |\n| `maxListeners` | Default changed from `100` to `0` (unlimited), no longer truncates |\n| `onHookEntry` | Removed — use `onHook` instead |\n| `onHook` signature | Now takes `IHook` object instead of `(event, handler)` |\n| `HookEntry` / `Hook` types | Replaced with `IHook` / `HookFn` |\n| `removeHook` / `removeHooks` | Now return removed hooks; no longer check deprecated status |\n| Internal hook storage | Uses `IHook` objects instead of raw functions |\n| `onceHook`, `prependHook`, etc. | Now take `IHook` instead of `(event, handler)` |\n| `onHook` return | Now returns stored `IHook` (was `void`) |\n\n### `throwHookErrors` removed — use `throwOnHookError` instead\n\nThe deprecated `throwHookErrors` option and property has been removed. Use `throwOnHookError` instead.\n\n**Before (v1):**\n\n```javascript\nsuper({ throwHookErrors: true });\nmyClass.throwHookErrors = false;\n```\n\n**After (v2):**\n\n```javascript\nsuper({ throwOnHookError: true });\nmyClass.throwOnHookError = false;\n```\n\n### `throwOnEmptyListeners` now defaults to `true`\n\nThe `throwOnEmptyListeners` option now defaults to `true`, matching standard Node.js EventEmitter behavior. Previously it defaulted to `false`. If you emit an `error` event with no listeners registered, an error will now be thrown by default.\n\n**Before (v1):**\n\n```javascript\nconst myClass = new MyClass(); // throwOnEmptyListeners defaults to false\nmyClass.emit('error', new Error('No throw')); // silently ignored\n```\n\n**After (v2):**\n\n```javascript\nconst myClass = new MyClass(); // throwOnEmptyListeners defaults to true\nmyClass.emit('error', new Error('This will throw')); // throws!\n\n// To restore v1 behavior:\nconst myClass2 = new MyClass({ throwOnEmptyListeners: false });\n```\n\n### `logger` renamed to `eventLogger`\n\nThe `logger` option and property has been renamed to `eventLogger` to avoid conflicts with other logger properties in your classes.\n\n**Before (v1):**\n\n```javascript\nsuper({ logger });\nmyClass.logger = pino({ level: 'debug' });\n```\n\n**After (v2):**\n\n```javascript\nsuper({ eventLogger: logger });\nmyClass.eventLogger = pino({ level: 'debug' });\n```\n\n### `maxListeners` default changed from `100` to `0` (unlimited) and no longer truncates\n\nThe default maximum number of listeners has changed from `100` to `0` (unlimited). The `MaxListenersExceededWarning` will no longer be emitted unless you explicitly set a limit via `setMaxListeners()`. Additionally, `setMaxListeners()` no longer truncates existing listeners — it only sets the warning threshold, matching standard Node.js EventEmitter behavior.\n\n**Before (v1):**\n\n```javascript\nconst myClass = new MyClass(); // maxListeners defaults to 100\n// Warning emitted after adding 100+ listeners to the same event\n// setMaxListeners() would truncate existing listeners exceeding the limit\n```\n\n**After (v2):**\n\n```javascript\nconst myClass = new MyClass(); // maxListeners defaults to 0 (unlimited)\n// No warning — unlimited listeners allowed\n// setMaxListeners() only sets warning threshold, never removes listeners\n\n// To restore v1 warning behavior:\nmyClass.setMaxListeners(100);\n```\n\n### `onHookEntry` removed — use `onHook` instead\n\nThe `onHookEntry` method has been removed. Use `onHook` which now accepts an `IHook` object (or array of `IHook`) directly.\n\n**Before (v1):**\n\n```typescript\nhookified.onHookEntry({ event: 'before:save', handler: async (data) => {} });\n```\n\n**After (v2):**\n\n```typescript\nhookified.onHook({ event: 'before:save', handler: async (data) => {} });\n```\n\n### `onHook` signature changed\n\n`onHook` no longer accepts positional `(event, handler)` arguments. It now takes a single `IHook` object or `Hook` class instance. Use `addHook(event, handler)` if you prefer positional arguments. Use `onHooks()` for bulk registration.\n\n**Before (v1):**\n\n```typescript\nhookified.onHook('before:save', async (data) => {});\n```\n\n**After (v2):**\n\n```typescript\n// Using IHook object\nhookified.onHook({ event: 'before:save', handler: async (data) => {} });\n\n// For multiple hooks, use onHooks\nhookified.onHooks([\n  { event: 'before:save', handler: async (data) => {} },\n  { event: 'after:save', handler: async (data) => {} },\n]);\n\n// Or use addHook for positional args\nhookified.addHook('before:save', async (data) => {});\n```\n\n### `HookEntry` type and `Hook` type removed\n\nThe `HookEntry` type has been removed and replaced with the `IHook` interface. The `Hook` type (function type) has been renamed to `HookFn`.\n\n**Before (v1):**\n\n```typescript\nimport type { HookEntry, Hook } from 'hookified';\n\nconst hook: HookEntry = { event: 'before:save', handler: async () => {} };\nconst myHook: Hook = async (data) => {};\n```\n\n**After (v2):**\n\n```typescript\nimport type { IHook, HookFn } from 'hookified';\n\nconst hook: IHook = { event: 'before:save', handler: async () => {} };\nconst myHook: HookFn = async (data) => {};\n```\n\n### `removeHook` and `removeHooks` now return removed hooks\n\n`removeHook` now returns the removed hook as an `IHook` object (or `undefined` if not found). `removeHooks` now returns an `IHook[]` array of the hooks that were successfully removed. Previously both returned `void`.\n\n**Before (v1):**\n\n```typescript\nhookified.removeHook('before:save', handler); // void\nhookified.removeHooks(hooks); // void\n```\n\n**After (v2):**\n\n```typescript\nconst removed = hookified.removeHook({ event: 'before:save', handler }); // IHook | undefined\nconst removedHooks = hookified.removeHooks(hooks); // IHook[]\n```\n\n### `removeHook`, `removeHooks`, and `getHooks` no longer check for deprecated hooks\n\nPreviously, `removeHook`, `removeHooks`, and `getHooks` would skip their operation and emit a deprecation warning when called with a deprecated hook name and `allowDeprecated` was `false`. This made it impossible to clean up or inspect deprecated hooks. These methods now always operate regardless of deprecation status.\n\n### Internal hook storage now uses `IHook` objects\n\nThe internal `_hooks` map now stores full `IHook` objects (`Map<string, IHook[]>`) instead of raw handler functions (`Map<string, HookFn[]>`). This means `.hooks` returns `Map<string, IHook[]>` and `.getHooks()` returns `IHook[] | undefined`.\n\n**Before (v1):**\n\n```typescript\nconst hooks = myClass.getHooks('before:save'); // HookFn[]\nhooks[0](data); // direct function call\n```\n\n**After (v2):**\n\n```typescript\nconst hooks = myClass.getHooks('before:save'); // IHook[]\nhooks[0].handler(data); // access .handler property\nhooks[0].event; // 'before:save'\n```\n\n### `onceHook`, `prependHook`, `prependOnceHook`, and `removeHook` now take `IHook`\n\nThese methods now accept an `IHook` object instead of separate `(event, handler)` arguments.\n\n**Before (v1):**\n\n```typescript\nhookified.onceHook('before:save', async (data) => {});\nhookified.prependHook('before:save', async (data) => {});\nhookified.prependOnceHook('before:save', async (data) => {});\nhookified.removeHook('before:save', handler);\n```\n\n**After (v2):**\n\n```typescript\nhookified.onceHook({ event: 'before:save', handler: async (data) => {} });\nhookified.prependHook({ event: 'before:save', handler: async (data) => {} });\nhookified.prependOnceHook({ event: 'before:save', handler: async (data) => {} });\nhookified.removeHook({ event: 'before:save', handler });\n```\n\n### `onHook` now returns the stored hook\n\n`onHook` now returns the stored `IHook` object (or `undefined` if blocked by deprecation). Previously it returned `void`. The returned reference is the exact object stored internally, making it easy to later remove with `removeHook()`.\n\n**Before (v1):**\n\n```typescript\nhookified.onHook({ event: 'before:save', handler }); // void\n```\n\n**After (v2):**\n\n```typescript\nconst stored = hookified.onHook({ event: 'before:save', handler }); // IHook | undefined\nhookified.removeHook(stored); // exact reference match\n```\n\n## New Features\n\n### `Hook` class\n\nA new `Hook` class is available for creating hook entries. It implements the `IHook` interface and can be used anywhere `IHook` is accepted.\n\n```typescript\nimport { Hook } from 'hookified';\n\nconst hook = new Hook('before:save', async (data) => {\n  data.validated = true;\n});\n\nmyClass.onHook(hook);\n```\n\n### `WaterfallHook` class\n\nA new `WaterfallHook` class is available for creating sequential data transformation pipelines. It implements the `IHook` interface and integrates directly with `Hookified.onHook()`. Each hook in the chain receives a `WaterfallHookContext` with `initialArgs` (the original arguments) and `results` (an array of `{ hook, result }` entries from all previous hooks).\n\n```typescript\nimport { Hookified, WaterfallHook } from 'hookified';\n\nclass MyClass extends Hookified {\n  constructor() { super(); }\n}\n\nconst myClass = new MyClass();\n\nconst wh = new WaterfallHook('save', ({ results }) => {\n  const data = results[results.length - 1].result;\n  console.log('Saved:', data);\n});\n\nwh.addHook(({ initialArgs }) => {\n  return { ...initialArgs, validated: true };\n});\n\nwh.addHook(({ results }) => {\n  return { ...results[results.length - 1].result, timestamp: Date.now() };\n});\n\nmyClass.onHook(wh);\nawait myClass.hook('save', { name: 'test' });\n// Saved: { name: 'test', validated: true, timestamp: ... }\n```\n\nSee the [Waterfall Hook](#waterfallhook) section for full documentation.\n\n### `useHookClone` option\n\nA new `useHookClone` option (default `true`) controls whether hook objects are shallow-cloned before storing. When enabled, external mutation of a registered hook object won't affect the internal state. Set to `false` to store the original reference for performance or when you need reference equality.\n\n```typescript\nclass MyClass extends Hookified {\n  constructor() { super({ useHookClone: false }); }\n}\n```\n\n### `onHook` now accepts `OnHookOptions`\n\n`onHook` now accepts an optional second parameter of type `OnHookOptions`. This allows you to override the instance-level `useHookClone` setting and control hook positioning on a per-call basis.\n\n```typescript\n// Override useHookClone for this specific call\nhookified.onHook({ event: 'before:save', handler }, { useHookClone: false });\n\n// Insert at the top of the handlers array instead of the end\nhookified.onHook({ event: 'before:save', handler }, { position: 'Top' });\n\n// Insert at a specific index\nhookified.onHook({ event: 'before:save', handler }, { position: 1 });\n```\n\n### `IHook` now has an `id` property\n\nEvery hook now has an optional `id` property. If not provided, a UUID is auto-generated via `crypto.randomUUID()`. The `id` enables easier lookups and removal via the new `getHook(id)` and `removeHookById(id)` methods, which search across all events.\n\nRegistering a hook with the same `id` on the same event replaces the existing hook in-place (preserving its position).\n\n```typescript\n// With custom id\nconst stored = hookified.onHook({\n  id: 'my-validation',\n  event: 'before:save',\n  handler: async (data) => { data.validated = true; },\n});\n\n// Without id — auto-generated\nconst stored2 = hookified.onHook({\n  event: 'before:save',\n  handler: async (data) => {},\n});\nconsole.log(stored2.id); // e.g. '550e8400-e29b-41d4-a716-446655440000'\n\n// Look up by id (searches all events)\nconst hook = hookified.getHook('my-validation');\n\n// Remove by id (searches all events)\nhookified.removeHookById('my-validation');\n\n// Remove multiple by ids\nhookified.removeHookById(['hook-a', 'hook-b']);\n```\n\nThe `Hook` class also accepts an optional `id` parameter:\n\n```typescript\nconst hook = new Hook('before:save', handler, 'my-custom-id');\n```\n\n### `removeEventHooks` method\n\nA new `removeEventHooks(event)` method removes all hooks for a specific event and returns the removed hooks as an `IHook[]` array.\n\n```typescript\nconst removed = hookified.removeEventHooks('before:save');\nconsole.log(removed.length); // number of hooks removed\n```\n\n# How to Contribute\n\nHookified is written in TypeScript and tests are written with `vitest`. To setup the environment and run the tests:\n\n```bash\npnpm i && pnpm test\n```\n\nNote that we are using `pnpm` as our package manager. If you don't have it installed, you can install it globally with:\n\n```bash\nnpm install -g pnpm\n```\n\nTo contribute follow the [Contributing Guidelines](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md).\n\n# License and Copyright\n\n[MIT & © Jared Wray](LICENSE)\n","_attachments":{},"homepage":"https://github.com/jaredwray/hookified#readme","bugs":{"url":"https://github.com/jaredwray/hookified/issues"},"license":"MIT"}