Installations
npm install gulp-resolve-dependents
Developer Guide
Typescript
No
Module System
CommonJS
NPM Version
1.4.28
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
2,483
Last day
0%
4
Compared to previous day
Last week
-33.3%
6
Compared to previous week
Last month
233.3%
20
Compared to previous month
Last year
-39.6%
102
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
3
gulp-resolve-dependents
This plugin resolve dependents of the source file.
Example
1var gulp = require('gulp'), 2 sass = require('gulp-sass'), 3 path = require('path'), 4 resolveDependents = require('gulp-resolve-dependents'); 5 6function sassResolver(filePath, fileContents){ 7 var match, result = [], 8 pattern = /import "(.+?)";/mg; 9 while((match = pattern.exec(fileContents)) !== null){ 10 result.push(path.resolve(path.dirname(filePath), match[1])); 11 } 12 return result; 13} 14 15gulp.task('default', function(){ 16 gulp.src('./src/lib/example.scss') 17 .pipe(resolveDependents({ 18 files: './src/**/*.scss', 19 resolver: sassResolver, 20 basePath: './src' 21 })) 22 .pipe(sass()) 23 .pipe(gulp.dest('./dest/css')); 24});
API
resolveDependents(option)
option.files (required)
Type: String Project files.
option.resolver (required)
Type: Function(filePath: String, fileContents: String): Array
option.basePath (optional)
Type: String Default: proeces.cwd This value is used to set base path of vinyl file and resolve reference path.
option.includeSource (optional)
Type: Boolean Default: true If set to false, resolveDependents does not push files that was passed from the pipe.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
Found 1/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Score
2.6
/10
Last Scanned on 2025-01-27
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