{"id":1087210,"name":"@niweera/node-complexer","ecosystem":"npm","description":"A CLI tool to get the complexity metrics when provided the AST and save it in *.JSON format.","homepage":"https://github.com/Niweera/node-complexer#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/Niweera/node-complexer","keywords_array":["AST","Complexity"],"namespace":"niweera","versions_count":2,"first_release_published_at":"2021-01-22T17:10:58.584Z","latest_release_published_at":"2021-04-20T12:52:59.479Z","latest_release_number":"0.1.1","last_synced_at":"2026-03-24T03:03:49.175Z","created_at":"2022-04-08T10:24:53.890Z","updated_at":"2026-03-24T03:07:34.339Z","registry_url":"https://www.npmjs.com/package/@niweera/node-complexer","install_command":"npm install @niweera/node-complexer","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"0.1.1"}},"repo_metadata":{"id":57131309,"uuid":"325716806","full_name":"Niweera/node-complexer","owner":"Niweera","description":"A CLI tool to get the complexity of a given JavaScript AST.","archived":false,"fork":false,"pushed_at":"2021-04-20T12:50:23.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T16:28:28.101Z","etag":null,"topics":["ast","complexity","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@niweera/node-complexer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Niweera.png","metadata":{},"created_at":"2020-12-31T04:52:16.000Z","updated_at":"2021-04-20T12:50:25.000Z","dependencies_parsed_at":"2022-09-01T00:12:41.639Z","dependency_job_id":null,"html_url":"https://github.com/Niweera/node-complexer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Niweera/node-complexer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niweera","download_url":"https://codeload.github.com/Niweera/node-complexer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/sbom","scorecard":{"id":102006,"data":{"date":"2025-08-11","repo":{"name":"github.com/Niweera/node-complexer","commit":"55141b88c34ab241f627e7c0aa9fbfba2a7ab500"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/5 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/Niweera/node-complexer/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/Niweera/node-complexer/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/Niweera/node-complexer/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/Niweera/node-complexer/codeql-analysis.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Info: no jobLevel write permissions found"],"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":"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":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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 'main'"],"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"}},{"name":"Vulnerabilities","score":0,"reason":"26 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T10:20:22.107Z","repository_id":57131309,"created_at":"2025-08-15T10:20:22.107Z","updated_at":"2025-08-15T10:20:22.107Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30874351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-24T02:58:37.973Z","status":"ssl_error","status_checked_at":"2026-03-24T02:57:23.829Z","response_time":106,"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"},"owner_record":{"login":"Niweera","name":"Nipuna Weerasekara","uuid":"25348766","kind":"user","description":"Even after I'm long dead, my software will live forever...","email":"","website":"https://niweera.gq","location":"Colombo","twitter":"Niweera","company":"@bug-zero, @scorelab, @web-telescope","icon_url":"https://avatars.githubusercontent.com/u/25348766?u=3a67943265fceb77f2323dc8e4cb3d66b05838f4\u0026v=4","repositories_count":20,"last_synced_at":"2023-03-03T03:15:14.112Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/Niweera","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-13T16:14:28.585Z","updated_at":"2023-03-03T03:15:14.115Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niweera","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niweera/repositories"},"tags":[{"name":"v0.1.1","sha":"55141b88c34ab241f627e7c0aa9fbfba2a7ab500","kind":"tag","published_at":"2021-04-20T12:50:13.000Z","download_url":"https://codeload.github.com/Niweera/node-complexer/tar.gz/v0.1.1","html_url":"https://github.com/Niweera/node-complexer/releases/tag/v0.1.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/Niweera/node-complexer@v0.1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/tags/v0.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/tags/v0.1.1/manifests"},{"name":"v0.1.0","sha":"38377d8ebf1e1584b40da0129440058d6a713737","kind":"tag","published_at":"2021-01-22T17:10:54.000Z","download_url":"https://codeload.github.com/Niweera/node-complexer/tar.gz/v0.1.0","html_url":"https://github.com/Niweera/node-complexer/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/Niweera/node-complexer@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-03-24T03:07:34.339Z","dependent_packages_count":1,"downloads":1,"downloads_period":"last-month","dependent_repos_count":0,"rankings":{"downloads":45.76322889354142,"dependent_repos_count":25.32799796580169,"dependent_packages_count":32.89382871786066,"stargazers_count":null,"forks_count":null,"average":34.66168519240126},"purl":"pkg:npm/%40niweera/node-complexer","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@niweera/node-complexer","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@niweera/node-complexer","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@niweera/node-complexer/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-13T13:33:25.852Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niweera%2Fnode-complexer/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@niweera%2Fnode-complexer/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@niweera%2Fnode-complexer/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@niweera%2Fnode-complexer/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@niweera%2Fnode-complexer/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@niweera%2Fnode-complexer/codemeta","maintainers":[{"uuid":"niweera","login":"niweera","name":null,"email":"w.nipuna@gmail.com","url":null,"packages_count":2,"html_url":"https://www.npmjs.com/~niweera","role":null,"created_at":"2022-11-20T20:38:50.844Z","updated_at":"2022-11-20T20:38:50.844Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/niweera/packages"}]}