Gathering detailed insights and metrics for gulp-resolve-dependents
Gathering detailed insights and metrics for gulp-resolve-dependents
npm install gulp-resolve-dependents
Typescript
Module System
NPM Version
JavaScript (100%)
Cumulative downloads
Total Downloads
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
3
This plugin resolve dependents of the source file.
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});
Type: String Project files.
Type: Function(filePath: String, fileContents: String): Array
Type: String Default: proeces.cwd This value is used to set base path of vinyl file and resolve reference path.
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
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
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
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