{"id":16331760,"url":"https://github.com/jansanchez/jscomplex","last_synced_at":"2025-03-22T22:32:08.715Z","repository":{"id":57284100,"uuid":"53168521","full_name":"jansanchez/jscomplex","owner":"jansanchez","description":"A colorful reporter for maintainability index via escomplex","archived":false,"fork":false,"pushed_at":"2016-06-09T17:11:03.000Z","size":512,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T23:28:52.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jscomplex","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/jansanchez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-04T22:06:04.000Z","updated_at":"2020-10-29T07:22:14.000Z","dependencies_parsed_at":"2022-09-07T21:53:30.322Z","dependency_job_id":null,"html_url":"https://github.com/jansanchez/jscomplex","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fjscomplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fjscomplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fjscomplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fjscomplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jansanchez","download_url":"https://codeload.github.com/jansanchez/jscomplex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221840554,"owners_count":16889815,"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","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":"2024-10-10T23:28:32.854Z","updated_at":"2024-10-28T14:29:57.922Z","avatar_url":"https://github.com/jansanchez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jscomplex [![NPM version][npm-image]][npm-url]\nA colorful reporter for maintainability index via escomplex\n\n![jscomplex basic use](docs/images/jscomplex-basic-use.png)\n\n\n## Install Globally\n\n```\nsudo npm install jscomplex -g\n```\n\n## Install like a development dependency\n\n```\nnpm install --save-dev jscomplex\n```\n\n## How to use\n\n![jscomplex](docs/images/jscomplex.gif)\n\n## Use it from `npm scripts`\n\n`package.json`\n\n```json\n\"scripts\": {\n    \"complex\": \"jscomplex ./js/**/*.js\"\n}\n```\n\nThen in a terminal:\n\n```bash\nnpm run complex\n```\n\n## Or Use from terminal\n\n```\njscomplex \"['./lib/*.js', './bin/*.js']\"\n```\n\n## Pre-requisites\n\nnode version \u003e= 4.0.0\n\n\n## Help\n\n```\njscomplex -h\n```\n*Output*\n\n```bash\n  Usage: jscomplex [options] \u003cpath\u003e\n\n  Options:\n\n    -h, --help                        output usage information\n    -V, --version                     output the version number\n    -j, --json                        specify json as the output format of the report\n    -M, --mi \u003cmaintainability index\u003e  specify the per-module maintainability index threshold\n    -l, --logicalor                   disregard operator || as source of cyclomatic complexity\n    -w, --switchcase                  disregard switch statements as source of cyclomatic complexity\n    -i, --forin                       treat for...in statements as source of cyclomatic complexity\n    -t, --trycatch                    treat catch clauses as source of cyclomatic complexity\n    -n, --newmi                       use the Microsoft-variant maintainability index (scale of 0 to 100)\n    -Q, --nocoresize                  don't calculate core size or visibility matrix\n\n  Examples:\n\n    # Analize all *.js files from \"lib\" folder\n    $ jscomplex \"['./lib/*.js']\"\n\n    # Analize all *.js files from \"lib\" and \"bin\" folder\n    $ jscomplex \"['./lib/*.js', './bin/*.js']\"\n\n    # Analize all *.js files\n    $ jscomplex \"['./**/*.js']\"\n```\n\n\n## Enjoy it!\n\n\n[npm-image]: http://img.shields.io/npm/v/jscomplex.svg\n[npm-url]: https://www.npmjs.org/package/jscomplex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjansanchez%2Fjscomplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjansanchez%2Fjscomplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjansanchez%2Fjscomplex/lists"}