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
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.5
Supply Chain
84.5
Quality
78.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
5,555,615,956
Last Day
4,644,503
Last Week
29,041,046
Last Month
133,140,160
Last Year
1,217,285,426
MIT License
305 Stars
108 Commits
63 Forks
10 Watchers
6 Branches
88 Contributors
Updated on Jul 04, 2025
Latest Version
4.3.0
Package Id
loader-runner@4.3.0
Unpacked Size
17.96 kB
Size
5.38 kB
File Count
6
NPM Version
7.22.0
Node Version
14.19.0
Cumulative downloads
Total Downloads
Last Day
23.3%
4,644,503
Compared to previous day
Last Week
1.8%
29,041,046
Compared to previous week
Last Month
16.2%
133,140,160
Compared to previous month
Last Year
10.6%
1,217,285,426
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 occured 30 31 // result.resourceBuffer: Buffer 32 // The raw resource as Buffer (useful for SourceMaps) 33 // only available when no error occured 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
1 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 5
Reason
7 existing vulnerabilities detected
Details
Reason
Found 3/14 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
SAST tool is not run on all commits -- score normalized to 0
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