Gathering detailed insights and metrics for @wmhilton/workerize-loader
Gathering detailed insights and metrics for @wmhilton/workerize-loader
Gathering detailed insights and metrics for @wmhilton/workerize-loader
Gathering detailed insights and metrics for @wmhilton/workerize-loader
🏗️ Automatically move a module into a Web Worker (Webpack loader)
npm install @wmhilton/workerize-loader
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2,307 Stars
109 Commits
85 Forks
14 Watchers
19 Branches
12 Contributors
Updated on Jul 06, 2025
Latest Version
1.0.4
Package Id
@wmhilton/workerize-loader@1.0.4
Unpacked Size
24.72 kB
Size
6.87 kB
File Count
11
NPM Version
6.1.0
Node Version
10.5.0
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
1
5
A webpack loader that moves a module and its dependencies into a Web Worker, automatically reflecting exported functions as asynchronous proxies.
Worker
1npm install -D workerize-loader
worker.js:
1// block for `time` ms, then return the number of loops we could run in that time: 2export function expensive(time) { 3 let start = Date.now(), 4 count = 0 5 while (Date.now() - start < time) count++ 6 return count 7}
index.js: (our demo)
1import worker from 'workerize-loader!./worker' 2 3let instance = worker() // `new` is optional 4 5instance.expensive(1000).then( count => { 6 console.log(`Ran ${count} loops`) 7})
If you're using Babel in your build, make sure you disabled commonJS transform. Otherwize, workerize-loader won't be able to retrieve the list of exported function from your worker script :
1{ 2 test: /\.js$/, 3 loader: "babel-loader", 4 options: { 5 presets: [ 6 [ 7 "env", 8 { 9 modules: false, 10 }, 11 ], 12 ] 13 } 14}
The inner workings here are heavily inspired by worker-loader. It's worth a read!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
Found 6/18 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
38 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