{"id":31132318,"url":"https://github.com/sonarsource/sonar-scanner-npm","last_synced_at":"2025-09-18T04:53:58.505Z","repository":{"id":64855866,"uuid":"574973764","full_name":"SonarSource/sonar-scanner-npm","owner":"SonarSource","description":"SonarQube Scanner for the JavaScript world","archived":false,"fork":false,"pushed_at":"2025-09-12T08:30:35.000Z","size":1777,"stargazers_count":51,"open_issues_count":0,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-12T10:26:43.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bellingard/sonar-scanner-npm","license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SonarSource.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":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-06T13:34:21.000Z","updated_at":"2025-09-12T08:30:38.000Z","dependencies_parsed_at":"2023-10-11T11:09:05.917Z","dependency_job_id":"5fc50ac9-f2cb-481f-bdc0-8d8240517946","html_url":"https://github.com/SonarSource/sonar-scanner-npm","commit_stats":{"total_commits":208,"total_committers":24,"mean_commits":8.666666666666666,"dds":0.5,"last_synced_commit":"047598e3b328bbf5b016f985e613b29de91ab5f9"},"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/SonarSource/sonar-scanner-npm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2Fsonar-scanner-npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2Fsonar-scanner-npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2Fsonar-scanner-npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2Fsonar-scanner-npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SonarSource","download_url":"https://codeload.github.com/SonarSource/sonar-scanner-npm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2Fsonar-scanner-npm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275712377,"owners_count":25514204,"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-09-18T02:00:09.552Z","response_time":77,"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-09-18T04:53:57.571Z","updated_at":"2025-09-18T04:53:58.496Z","avatar_url":"https://github.com/SonarSource.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NPM module to run SonarQube Server and Cloud analyses\n\n`@sonar/scan` makes it very easy to trigger SonarQube [Server](https://www.sonarqube.org)\nand [Cloud](https://sonarcloud.io) analyses on a JavaScript code base, without needing\nto install any specific tool or (Java) runtime.\n\nThis module is analyzed on SonarQube Cloud.\n\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=SonarSource_sonar-scanner-npm\u0026metric=alert_status)](https://sonarcloud.io/project/overview?id=SonarSource_sonar-scanner-npm) [![Maintainability](https://sonarcloud.io/api/project_badges/measure?project=SonarSource_sonar-scanner-npm\u0026metric=sqale_rating)](https://sonarcloud.io/project/overview?id=SonarSource_sonar-scanner-npm) [![Reliability](https://sonarcloud.io/api/project_badges/measure?project=SonarSource_sonar-scanner-npm\u0026metric=reliability_rating)](https://sonarcloud.io/project/overview?id=SonarSource_sonar-scanner-npm) [![Security](https://sonarcloud.io/api/project_badges/measure?project=SonarSource_sonar-scanner-npm\u0026metric=security_rating)](https://sonarcloud.io/project/overview?id=SonarSource_sonar-scanner-npm) [![Releases](https://img.shields.io/github/release/SonarSource/sonar-scanner-npm.svg)](https://github.com/SonarSource/sonar-scanner-npm/releases) [![npm version](https://badge.fury.io/js/@sonar%2Fscan.svg)](https://badge.fury.io/js/@sonar%2Fscan)\n\nThis is the documentation for v4. If you are using v3, refer to [the v3 documentation](https://github.com/SonarSource/sonar-scanner-npm/tree/3.5.0).\n\n## Installation\n\n_Prerequisite: Node v18+ (for v4 and above)_\n\n_Prerequisite: Node v16+ (for [v3](https://github.com/SonarSource/sonar-scanner-npm/tree/3.5.0), otherwise use sonarqube-scanner [v2.9.1](https://github.com/SonarSource/sonar-scanner-npm/tree/2.9.1))_\n\nThis package is available on npm as: [`@sonar/scan`](https://www.npmjs.com/package/@sonar/scan)\n\nTo install the scanner globally and be able to run analyses on the command line:\n\n```sh\nnpm install -g @sonar/scan\n```\n\n## Getting Started\n\nIf you want to run an analysis without having to configure anything in the first place, simply run the `sonar` command. The following\nexample assumes that you have installed SonarQube Server locally:\n\n```\ncd my-project\nsonar\n```\n\nor you can use `npx` without installing:\n\n```\ncd my-project\nnpx @sonar/scan\n```\n\n## Documentation\n\nFor the extended information, please refer to its [documentation](https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/npm/introduction/).\n\n## License\n\n`@sonar/scan` is licensed under the [LGPL v3 License](http://www.gnu.org/licenses/lgpl.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonarsource%2Fsonar-scanner-npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonarsource%2Fsonar-scanner-npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonarsource%2Fsonar-scanner-npm/lists"}