Gathering detailed insights and metrics for async
Gathering detailed insights and metrics for async
Gathering detailed insights and metrics for async
Gathering detailed insights and metrics for async
neo-async
Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster
@babel/plugin-syntax-async-generators
Allow parsing of async generator functions
async-settle
Settle an async function.
@babel/plugin-transform-async-to-generator
Turn async functions into ES2015 generators
npm install async
99.4
Supply Chain
89.8
Quality
82.6
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
28,196 Stars
1,963 Commits
2,406 Forks
658 Watching
8 Branches
237 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
JavaScript (95.9%)
CSS (2.57%)
Shell (0.78%)
Makefile (0.76%)
Cumulative downloads
Total Downloads
Last day
-6.6%
11,133,226
Compared to previous day
Last week
2%
66,501,692
Compared to previous week
Last month
12.4%
270,680,354
Compared to previous month
Last year
4.8%
2,747,994,761
Compared to previous year
36
Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js and installable via npm i async
, it can also be used directly in the browser. An ESM/MJS version is included in the main async
package that should automatically be used with compatible bundlers such as Webpack and Rollup.
A pure ESM version of Async is available as async-es
.
For Documentation, visit https://caolan.github.io/async/
For Async v1.5.x documentation, go HERE
1// for use with Node-style callbacks... 2var async = require("async"); 3 4var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"}; 5var configs = {}; 6 7async.forEachOf(obj, (value, key, callback) => { 8 fs.readFile(__dirname + value, "utf8", (err, data) => { 9 if (err) return callback(err); 10 try { 11 configs[key] = JSON.parse(data); 12 } catch (e) { 13 return callback(e); 14 } 15 callback(); 16 }); 17}, err => { 18 if (err) console.error(err.message); 19 // configs is now a map of JSON data 20 doSomethingWith(configs); 21});
1var async = require("async"); 2 3// ...or ES2017 async functions 4async.mapLimit(urls, 5, async function(url) { 5 const response = await fetch(url) 6 return response.body 7}, (err, results) => { 8 if (err) throw err 9 // results is now an array of the response bodies 10 console.log(results) 11})
The latest stable version of the package.
Stable Version
2
7.8/10
Summary
Prototype Pollution in async
Affected Versions
>= 2.0.0, < 2.6.4
Patched Versions
2.6.4
7.8/10
Summary
Prototype Pollution in async
Affected Versions
>= 3.0.0, < 3.2.2
Patched Versions
3.2.2
Reason
7 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 1/5 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
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
21 existing vulnerabilities detected
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