Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

sonarqube-scanner

Package Overview
Dependencies
Maintainers
17
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sonarqube-scanner

SonarQube/SonarCloud Scanner for the JavaScript world

latest
Source
npmnpm
Version
4.3.6
Version published
Weekly downloads
522K
5.23%
Maintainers
17
Weekly downloads
 
Created
Source

NPM module to run SonarQube Server and Cloud analyses

@sonar/scan makes it very easy to trigger SonarQube Server and Cloud analyses on a JavaScript code base, without needing to install any specific tool or (Java) runtime.

This module is analyzed on SonarQube Cloud.

Build Quality Gate Maintainability Reliability Security Releases npm version

This is the documentation for v4. If you are using v3, refer to the v3 documentation.

Installation

Prerequisite: Node v18+ (for v4 and above)

Prerequisite: Node v16+ (for v3, otherwise use sonarqube-scanner v2.9.1)

This package is available on npm as: @sonar/scan

To install the scanner globally and be able to run analyses on the command line:

npm install -g @sonar/scan

Getting Started

If you want to run an analysis without having to configure anything in the first place, simply run the sonar command. The following example assumes that you have installed SonarQube Server locally:

cd my-project
sonar

or you can use npx without installing:

cd my-project
npx @sonar/scan

Documentation

For the extended information, please refer to its documentation.

License

@sonar/scan is licensed under the LGPL v3 License.

Keywords

sonarqube

FAQs

Package last updated on 15 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts