Gathering detailed insights and metrics for run-parallel
Gathering detailed insights and metrics for run-parallel
Gathering detailed insights and metrics for run-parallel
Gathering detailed insights and metrics for run-parallel
npm install run-parallel
99.7
Supply Chain
93.6
Quality
76
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
381 Stars
90 Commits
16 Forks
10 Watching
6 Branches
4 Contributors
Updated on 20 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7%
7,727,611
Compared to previous day
Last week
2.5%
45,363,155
Compared to previous week
Last month
12.2%
184,220,534
Compared to previous month
Last year
20.4%
1,839,292,424
Compared to previous year
1
npm install run-parallel
Run the tasks
array of functions in parallel, without waiting until the previous
function has completed. If any of the functions pass an error to its callback, the main
callback
is immediately called with the value of the error. Once the tasks
have
completed, the results are passed to the final callback
as an array.
It is also possible to use an object instead of an array. Each property will be run as a
function and the results will be passed to the final callback
as an object instead of
an array. This can be a more readable way of handling the results.
tasks
- An array or object containing functions to run. Each function is passed a
callback(err, result)
which it must call on completion with an error err
(which can
be null
) and an optional result
value.callback(err, results)
- An optional callback to run once all the functions have
completed. This function gets a results array (or object) containing all the result
arguments passed to the task callbacks.1var parallel = require('run-parallel') 2 3parallel([ 4 function (callback) { 5 setTimeout(function () { 6 callback(null, 'one') 7 }, 200) 8 }, 9 function (callback) { 10 setTimeout(function () { 11 callback(null, 'two') 12 }, 100) 13 } 14], 15// optional callback 16function (err, results) { 17 // the results array will equal ['one','two'] even though 18 // the second function had a shorter timeout. 19})
This module is basically equavalent to
async.parallel
, but it's
handy to just have the one function you need instead of the kitchen sink. Modularity!
Especially handy if you're serving to the browser and need to reduce your javascript
bundle size.
Works great in the browser with browserify!
MIT. Copyright (c) Feross Aboukhadijeh.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
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
Found 0/20 approved changesets -- 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
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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