{"id":24511613,"url":"https://github.com/moappi/simple-join","last_synced_at":"2025-10-24T09:50:09.944Z","repository":{"id":57360305,"uuid":"68329638","full_name":"moappi/simple-join","owner":"moappi","description":"Stupidly simple asynchronous joins for Javascript","archived":false,"fork":false,"pushed_at":"2017-01-06T23:21:12.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T01:47:02.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moappi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-15T20:40:07.000Z","updated_at":"2023-08-02T22:25:32.000Z","dependencies_parsed_at":"2022-09-06T22:23:14.949Z","dependency_job_id":null,"html_url":"https://github.com/moappi/simple-join","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moappi/simple-join","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moappi%2Fsimple-join","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moappi%2Fsimple-join/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moappi%2Fsimple-join/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moappi%2Fsimple-join/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moappi","download_url":"https://codeload.github.com/moappi/simple-join/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moappi%2Fsimple-join/sbom","scorecard":{"id":655244,"data":{"date":"2025-08-11","repo":{"name":"github.com/moappi/simple-join","commit":"854bad6ba2e91dd396d2a2543c3a9173e7361409"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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-21T14:28:34.997Z","repository_id":57360305,"created_at":"2025-08-21T14:28:34.997Z","updated_at":"2025-08-21T14:28:34.997Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280776484,"owners_count":26388950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-22T00:39:08.116Z","updated_at":"2025-10-24T09:50:09.927Z","avatar_url":"https://github.com/moappi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"simple-join\n=========\n\nStuidly simple library to help join asynchronous callbacks in Javascript\n\n## Install\n```\n$ npm install simple-join\n```\n\n## Usage\n\n##### Simple joining\n\n```js\n\tvar join = require('simple-join');\n\n\tvar wait = new join(2,function(){\n\n\t\tconsole.log(\"DONE\");\n\t});\n\n\tsetTimeout(function(){ wait.done(); }, 3000);\n\n\tsetTimeout(function(){ wait.done(); }, 5000);\n```\n\n##### Simple joining, with error \u0026 success information\n\n```js\n\tvar join = require('simple-join');\n\n\tvar wait = new join(2,function(status){\n\n\t\tconsole.log(status); //{\"total\":2,\"errors\":1,\"success\":1,\"messages\":[\"my error message\"]}\n\t});\n\n\tsetTimeout(function(){ wait.success(); }, 3000);\n\n\tsetTimeout(function(){ wait.error('my error message'); }, 5000);\n```\n\n## Methods\n\n### join(num,callback)\n\nParameters: \n\n- `num` (number) - number of joins to be comlpeted before running callback\n- `callback` (function) - callback function to be run when all joins are completed. Passed the status object (see join.status method)\n\nReturns:\n\n- (object) new instance of the object\n\nExample:\n\n```js\n\tvar wait = new join(3,function(status){\n\t\t//Run when we've joined all 3 \n\t});\n```\n\n#### join.done(num)\n\nSignals that a join(s) is completed\n\nParameters: \n\n- `num` (number, optional) - number of joins to be crossed off the list, default is 1\n\nReturns:\n\n- (number) number of joins that we're still waiting for\n\nExample:\n\n```js\n\twait.done();\n\twait.done(2);\n```\n\n#### join.success(num)\n\nSignals that a join(s) is completed, and was 'successful'\n\nParameters: \n\n- `num` (number, optional) - number of joins to be crossed off the list, default is 1\n\nReturns:\n\n- (number) number of joins that we're still waiting for\n\nExample:\n\n```js\n\twait.success();\n\twait.success(2);\n```\n\n#### join.error(val)\n\nSignals that a join(s) is completed, but with an 'error'.\n\nParameters: \n\n- `val` (number, optional) - number of joins to be crossed off the list, default is 1\n\nOR\n\n- `val` (string, optional) - error message to be recorded\n\nReturns:\n\n- (number) number of joins that we're still waiting for\n\nExample:\n\n```js\n\twait.error();\n\twait.error(2);\n\twait.error('My error message');\n```\n\n#### join.status()\n\nGet the join status object (same as object passed to the callback)\n\nParameters: None\n\nReturns (object):\n\n- `total` (number) : total number of joins when join was created\n- `success` (number) : number of joins completed that were successful (via join.success)\n- `errors` (number) : number of joins that had errors (via join.error)\n- `messages` (array) : array of errors messages (via join.error)\n\nExample:\n\n```js\n\twait.status();\n```\n\n```js\n\t{\n\t\t\"total\":2,\n\t\t\"success\":1,\n\t\t\"errors\":1,\n\t\t\"messages\":[\"My error message\"]\n\t}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoappi%2Fsimple-join","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoappi%2Fsimple-join","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoappi%2Fsimple-join/lists"}