{"id":13749047,"url":"https://github.com/slyg/jscomplexity","last_synced_at":"2026-01-10T21:01:54.497Z","repository":{"id":6845111,"uuid":"8093714","full_name":"slyg/jscomplexity","owner":"slyg","description":"💤 [Not maintained] JS cyclomatic complexity report generator","archived":false,"fork":false,"pushed_at":"2018-11-28T21:48:25.000Z","size":565,"stargazers_count":30,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-20T02:24:00.025Z","etag":null,"topics":["cyclomatic-complexity","javascript","unmaintained"],"latest_commit_sha":null,"homepage":"","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/slyg.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":"2013-02-08T13:11:47.000Z","updated_at":"2023-07-19T17:28:16.000Z","dependencies_parsed_at":"2022-08-26T07:10:54.375Z","dependency_job_id":null,"html_url":"https://github.com/slyg/jscomplexity","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/slyg/jscomplexity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyg%2Fjscomplexity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyg%2Fjscomplexity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyg%2Fjscomplexity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyg%2Fjscomplexity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slyg","download_url":"https://codeload.github.com/slyg/jscomplexity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyg%2Fjscomplexity/sbom","scorecard":{"id":832183,"data":{"date":"2025-08-11","repo":{"name":"github.com/slyg/jscomplexity","commit":"6efa03ce04ad4d2dc1ff56e6bbc7c392741507ce"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/28 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":"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":"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":"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":"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":"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":"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":"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":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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T18:01:53.597Z","repository_id":6845111,"created_at":"2025-08-23T18:01:53.597Z","updated_at":"2025-08-23T18:01:53.597Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28258096,"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":"2026-01-10T02:00:06.867Z","response_time":57,"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":["cyclomatic-complexity","javascript","unmaintained"],"created_at":"2024-08-03T07:00:54.462Z","updated_at":"2026-01-10T21:01:54.455Z","avatar_url":"https://github.com/slyg.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# JScomplexity\n\nJS cyclomatic complexity report generator.\n\nCommand-line tool and module that generates a report of Javascript files complexity. It is based on [escomplex](https://github.com/philbooth/escomplex/) module's results.\n\nIn 'html' mode, command-line tool will create an .html file report containing graphical representation of files complexity and lines of code count.\n\n[![Build Status](https://travis-ci.org/slyg/jscomplexity.png?branch=master)](https://travis-ci.org/slyg/jscomplexity)\n\n### Installation \n\n`npm install -g jscomplexity`\n\n### Module usage\n\n```js\nvar jscomplexity = require('jscomplexity');\n\n// jscomplexity() returns a promise (using bluebird)\njscomplexity('/glob/pattern/to/js/*' [, globOptions]).then(console.log);\n\n// you can also use CPS style\njscomplexity('/glob/pattern/to/js/*', {}, function(err, result){\n  if(err) {\n    return console.log(err);\n  }\n  console.log(result);\n});\n```\n\n### Command-line usage\n\n```\nUsage: jscomplexity [options]\n\n  Options:\n\n    -h, --help                 output usage information\n    -V, --version              output the version number\n    -p, --pattern \u003cpattern\u003e    glob pattern - default is current directory\n    -o, --output \u003cfilename\u003e    (optional) customize html report filename - default is 'jscomplexity-report.html'\n    -r, --reporter \u003creporter\u003e  (optional) specify a reporter: 'terminal', 'html' or 'all' - default is 'terminal'\n```\n\n:warning: Linux/OSX compliant only (I haven't tested it on Windows).\n\nCLI Example : `jscomplexity -p '{src/*.js,src/**/*.js,!src/config/**}'`\n\n### Sample outputs (gremlins.js)\n\n#### Terminal\n\n![alt tag](https://raw.github.com/slyg/jscomplexity/master/images/screenshot-console.png)\n\n#### HTML report\n\n![alt tag](https://raw.github.com/slyg/jscomplexity/master/images/screenshot-webUI.png)\n\n### Grunt task\n\nSee [grunt-jscomplexity-threshold](https://github.com/slyg/grunt-jscomplexity-threshold) module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslyg%2Fjscomplexity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslyg%2Fjscomplexity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslyg%2Fjscomplexity/lists"}