Gathering detailed insights and metrics for babel-plugin-require-context-hook-babel7
Gathering detailed insights and metrics for babel-plugin-require-context-hook-babel7
Gathering detailed insights and metrics for babel-plugin-require-context-hook-babel7
Gathering detailed insights and metrics for babel-plugin-require-context-hook-babel7
Babel plugin to replicate Webpack require.context
npm install babel-plugin-require-context-hook-babel7
Typescript
Module System
Node Version
NPM Version
71.9
Supply Chain
68.1
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,572,747
Last Day
585
Last Week
5,379
Last Month
22,316
Last Year
630,446
46 Stars
1 Commits
14 Forks
3 Watchers
1 Branches
1 Contributors
Updated on Jan 12, 2025
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
babel-plugin-require-context-hook-babel7@1.0.0
Unpacked Size
19.67 kB
Size
8.49 kB
File Count
10
NPM Version
5.6.0
Node Version
8.11.2
Cumulative downloads
Total Downloads
Last Day
-0.5%
585
Compared to previous day
Last Week
2.6%
5,379
Compared to previous week
Last Month
3.7%
22,316
Compared to previous month
Last Year
42.7%
630,446
Compared to previous year
1
2
babelrc:
"plugins": [
"require-context-hook"
]
Wherever you configure babel-register (your source file, a register script, etc):
require('babel-plugin-require-context-hook/register')();
The register script babel-plugin-require-context-hook/register
implements the function require.context
with an extra parameter-- the directory in which the calling file resides-- and places that function on the global scope.
The Babel plugin babel-plugin-require-context-hook
rewrites all calls to require.context
into calls to this global function, passing in __dirname
as the extra parameter.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-09
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