Gathering detailed insights and metrics for gulp-require-index
Gathering detailed insights and metrics for gulp-require-index
Gathering detailed insights and metrics for gulp-require-index
Gathering detailed insights and metrics for gulp-require-index
Generate a index.js file that is exporting all the specified files
npm install gulp-require-index
Typescript
Module System
Node Version
NPM Version
68.6
Supply Chain
81.4
Quality
72.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
8 Commits
12 Branches
1 Contributors
Updated on Aug 28, 2019
Latest Version
0.1.1
Package Id
gulp-require-index@0.1.1
Unpacked Size
8.10 kB
Size
2.83 kB
File Count
10
NPM Version
6.9.0
Node Version
10.15.3
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
Install package with NPM and add it to your development dependencies:
1npm install gulp-require-index --save-dev
You can install it directly from github:
1npm install kevthunder/gulp-require-index --save-dev
1var requireIndex = require('gulp-require-index'); 2 3gulp.task('html:buildIndex', function() { 4 return gulp.src('./lib/**/*.js') 5 .pipe(requireIndex()) 6 .pipe(gulp.dest('./')); 7});
This will generate a index.js from the files found in ./lib
and output something similar to :
1module.exports = { 2 "Bar": require("./lib/Bar").Bar, 3 "Foo": require("./lib/Foo"), 4 "folder": { 5 "Baz": require("./lib/folder/Baz").Baz, 6 "Hi": require("./lib/folder/Hi").Hi, 7 "sub": { 8 "Hey": require("./lib/folder/sub/Hey").Hey, 9 }, 10 }, 11}
Some options can be specified, the default are:
1 // the name of the file generated 2 name: 'index.js', 3 // the destination for the generated file (used for the relative path) 4 dest: null, 5 // set to true to have the definitions on the root level instead of nested 6 flat: false
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
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
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
35 existing vulnerabilities detected
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