{"id":40568950,"url":"https://github.com/cjssdk/async","last_synced_at":"2026-01-21T01:33:16.218Z","repository":{"id":57102309,"uuid":"48188466","full_name":"cjssdk/async","owner":"cjssdk","description":"Asynchronous tools.","archived":false,"fork":false,"pushed_at":"2019-11-25T10:47:28.000Z","size":443,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-23T02:00:03.879Z","etag":null,"topics":["async","cjs","parallel","serial"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjssdk.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-17T17:29:20.000Z","updated_at":"2019-11-25T10:47:30.000Z","dependencies_parsed_at":"2022-08-20T18:40:27.428Z","dependency_job_id":null,"html_url":"https://github.com/cjssdk/async","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cjssdk/async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjssdk%2Fasync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjssdk%2Fasync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjssdk%2Fasync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjssdk%2Fasync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjssdk","download_url":"https://codeload.github.com/cjssdk/async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjssdk%2Fasync/sbom","scorecard":{"id":284463,"data":{"date":"2025-08-11","repo":{"name":"github.com/cjssdk/async","commit":"0b097ddf1840a0f5add4154365202f42c9e699e3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: license.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T16:53:34.993Z","repository_id":57102309,"created_at":"2025-08-17T16:53:34.993Z","updated_at":"2025-08-17T16:53:34.993Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28621677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","cjs","parallel","serial"],"created_at":"2026-01-21T01:33:16.160Z","updated_at":"2026-01-21T01:33:16.212Z","avatar_url":"https://github.com/cjssdk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Asynchronous tools\n==================\n\n[![build status](https://img.shields.io/travis/cjssdk/async.svg?style=flat-square)](https://travis-ci.org/cjssdk/async)\n[![npm version](https://img.shields.io/npm/v/cjs-async.svg?style=flat-square)](https://www.npmjs.com/package/cjs-async)\n[![dependencies status](https://img.shields.io/david/cjssdk/async.svg?style=flat-square)](https://david-dm.org/cjssdk/async)\n[![devDependencies status](https://img.shields.io/david/dev/cjssdk/async.svg?style=flat-square)](https://david-dm.org/cjssdk/async?type=dev)\n[![Gitter](https://img.shields.io/badge/gitter-join%20chat-blue.svg?style=flat-square)](https://gitter.im/DarkPark/cjssdk)\n[![RunKit](https://img.shields.io/badge/RunKit-try-yellow.svg?style=flat-square)](https://npm.runkit.com/cjs-async)\n[![API](https://img.shields.io/badge/API-docs-orange.svg?style=flat-square)](https://cjssdk.github.io/async/)\n\n\nSet of methods to synchronize asynchronous operations.\n\n\n## Installation ##\n\n```bash\nnpm install cjs-async\n```\n\n\n## Usage ##\n\n### parallel ###\n\nRun the tasks array of functions in parallel, without waiting until the previous function has completed.\nIf any of the functions pass an error to its callback, the main callback is immediately called with the value of the error.\nOnce the tasks have completed, the results are passed to the final callback as an array and hash.\nTask function name is used to name the corresponding hash-table values.\nTask function can either use callback to specify error and result value or return result value immediately.\n\nOnline [example](https://runkit.com/darkpark/cjs-async-parallel):\n\n```js\nvar parallel = require('cjs-async/parallel'),\n    taskList = [\n        function ( callback ) {\n            setTimeout(function () {\n                callback(null, true);\n            }, 10);\n        },\n        function ( callback ) {\n            setTimeout(function () {\n                callback(null, 256);\n            }, 20);\n        },\n        function ( callback ) {\n            setTimeout(function () {\n                callback(null, '512');\n            }, 0);\n        },\n        function () {\n            return 32;\n        }\n    ];\n\nparallel(taskList, function ( error, results ) {\n    if ( !error ) {\n        // results contains array of the given tasks execution results\n        // [true, 256, '512', 32]\n        console.log(results);\n    }\n});\n```\n\n### serial ###\n\nRun the functions in the tasks array in series, each one running once the previous function has completed.\nIf any functions in the series pass an error to its callback, no more functions are run,\nand callback is immediately called with the value of the error.\nOtherwise, callback receives an array and hash of results when tasks have completed.\nTask function name is used to name the corresponding hash-table values.\nTask function can either use callback to specify error and result value or return result value immediately.\n\nOnline [example](https://runkit.com/darkpark/cjs-async-serial):\n\n```js\nvar serial   = require('cjs-async/serial'),\n    taskList = [\n        function () {\n            return 32;\n        },\n        function ( callback ) {\n            setTimeout(function () {\n                callback(null, true);\n            }, 10);\n        },\n        function ( callback ) {\n            setTimeout(function () {\n                callback(null, 256);\n            }, 20);\n        },\n        function ( callback ) {\n            setTimeout(function () {\n                callback(null, '512');\n            }, 0);\n        }\n    ];\n    \nserial(taskList, function ( error, results ) {\n    if ( !error ) {\n        // results contains array of the given tasks execution results\n        // [32, true, 256, '512']\n        console.log(results);\n    }\n});\n```\n\n\n## Contribution ##\n\nIf you have any problems or suggestions please open an [issue](https://github.com/cjssdk/async/issues)\naccording to the contribution [rules](.github/contributing.md).\n\n\n## License ##\n\n`cjs-async` is released under the [MIT License](license.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjssdk%2Fasync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjssdk%2Fasync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjssdk%2Fasync/lists"}