Gathering detailed insights and metrics for loader-runner
Gathering detailed insights and metrics for loader-runner
Gathering detailed insights and metrics for loader-runner
Gathering detailed insights and metrics for loader-runner
npm install loader-runner
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
303 Stars
107 Commits
60 Forks
10 Watching
4 Branches
86 Contributors
Updated on 25 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7.8%
4,341,828
Compared to previous day
Last week
1.4%
25,039,504
Compared to previous week
Last month
11.7%
103,672,457
Compared to previous month
Last year
-4.6%
1,109,709,277
Compared to previous year
6
1import { runLoaders } from "loader-runner"; 2 3runLoaders({ 4 resource: "/abs/path/to/file.txt?query", 5 // String: Absolute path to the resource (optionally including query string) 6 7 loaders: ["/abs/path/to/loader.js?query"], 8 // String[]: Absolute paths to the loaders (optionally including query string) 9 // {loader, options}[]: Absolute paths to the loaders with options object 10 11 context: { minimize: true }, 12 // Additional loader context which is used as base context 13 14 processResource: (loaderContext, resourcePath, callback) => { ... }, 15 // Optional: A function to process the resource 16 // Must have signature function(context, path, function(err, buffer)) 17 // By default readResource is used and the resource is added a fileDependency 18 19 readResource: fs.readFile.bind(fs) 20 // Optional: A function to read the resource 21 // Only used when 'processResource' is not provided 22 // Must have signature function(path, function(err, buffer)) 23 // By default fs.readFile is used 24}, function(err, result) { 25 // err: Error? 26 27 // result.result: Buffer | String 28 // The result 29 // only available when no error occurred 30 31 // result.resourceBuffer: Buffer 32 // The raw resource as Buffer (useful for SourceMaps) 33 // only available when no error occurred 34 35 // result.cacheable: Bool 36 // Is the result cacheable or do it require reexecution? 37 38 // result.fileDependencies: String[] 39 // An array of paths (existing files) on which the result depends on 40 41 // result.missingDependencies: String[] 42 // An array of paths (not existing files) on which the result depends on 43 44 // result.contextDependencies: String[] 45 // An array of paths (directories) on which the result depends on 46})
More documentation following...
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 3/13 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
security policy 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
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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