Installations
npm install run-series
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.14.0
NPM Version
6.14.8
Score
99.9
Supply Chain
88
Quality
76
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
feross
Download Statistics
Total Downloads
275,451,837
Last Day
10,081
Last Week
10,081
Last Month
3,796,497
Last Year
64,609,488
GitHub Statistics
246 Stars
76 Commits
16 Forks
6 Watching
5 Branches
2 Contributors
Bundle Size
336.00 B
Minified
242.00 B
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
1.1.9
Package Id
run-series@1.1.9
Size
2.49 kB
NPM Version
6.14.8
Node Version
14.14.0
Publised On
27 Oct 2020
Total Downloads
Cumulative downloads
Total Downloads
275,451,837
Last day
0%
10,081
Compared to previous day
Last week
-98.8%
10,081
Compared to previous week
Last month
-21.2%
3,796,497
Compared to previous month
Last year
-33.7%
64,609,488
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
run-series
![javascript style guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)
Run an array of functions in series
install
npm install run-series
usage
series(tasks, [callback])
Run the functions in the tasks
array in series, each one running once the previous
function has completed. If any functions in the series pass an error to its callback, no
more functions are run, and callback
is immediately called with the value of the error.
Otherwise, callback
receives an array of results when tasks
have completed.
arguments
tasks
- An array containing functions to run, each function is passed acallback(err, result)
which it must call on completion with an errorerr
(which can benull
) 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 containing all the result arguments passed to the task callbacks.
example
1var series = require('run-series') 2 3series([ 4 function (callback) { 5 // do some stuff ... 6 callback(null, 'one') 7 }, 8 function (callback) { 9 // do some stuff ... 10 callback(null, 'two') 11 } 12], 13// optional callback 14function (err, results) { 15 // the results array will equal ['one','two'] 16})
This module is basically equavalent to
async.series
, but it's
handy to just have the functions 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!
see also
license
MIT. Copyright (c) Feross Aboukhadijeh.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/19 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 15 are checked with a SAST tool
Score
3.5
/10
Last Scanned on 2025-02-03
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