Gathering detailed insights and metrics for event-hooks-webpack-plugin
Gathering detailed insights and metrics for event-hooks-webpack-plugin
Gathering detailed insights and metrics for event-hooks-webpack-plugin
Gathering detailed insights and metrics for event-hooks-webpack-plugin
npm install event-hooks-webpack-plugin
Typescript
Module System
Node Version
NPM Version
TypeScript (98.48%)
JavaScript (1.52%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
34 Stars
89 Commits
4 Forks
1 Watchers
2 Branches
4 Contributors
Updated on Jul 12, 2025
Latest Version
3.0.1
Package Id
event-hooks-webpack-plugin@3.0.1
Unpacked Size
12.35 kB
Size
4.17 kB
File Count
15
NPM Version
10.9.2
Node Version
22.14.0
Published on
Mar 17, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
5
This Webpack plugin is similar to webpack-shell-plugin
but it allows executing
arbitrary code instead of commands on any compiler hook that is made available by Webpack.
1npm install event-hooks-webpack-plugin --save-dev
1import EventHooksPlugin from 'event-hooks-webpack-plugin'; 2 3export default { 4 // ... 5 plugins: [ 6 new EventHooksPlugin({ 7 initialize: () => { 8 // ... 9 } 10 }) 11 ] 12};
The plugin consumes an object with Webpack compiler event hook names (e.g. run
, compile
,
and done
) as keys and functions as values.
Webpack's compiler uses Tapable which supports different classes of hooks. This plugin supports
synchronous, promise-based, and callback-based hooks through the exported tap
, tapPromise
and tapAsync
methods.
By default, the plugin uses tap
.
1import EventHooksPlugin, { tapPromise, tapAsync } from 'event-hooks-webpack-plugin'; 2 3export default { 4 // ... 5 plugins: [ 6 new EventHooksPlugin({ 7 emit: tapAsync(() => { 8 // ... 9 }), 10 run: tapPromise(() => { 11 // ... 12 }) 13 }) 14 ] 15};
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More