SonarQube Web APIs wrapped into an SDK. Early stage and WIP.
MIT License
An easy way to work with SonarQube Web APIs. With inbuilt types, it is easier to work with the response and request parameters without having to look into the documentation.
Disclaimer: The library is not associated with SonarQube. Its an unofficial SDK.
npm install sonarqube-sdk
import { Client } from 'sonarqube-sdk';
import { SonarQubeSDKAuthConfig } from 'sonarqube-sdk/interfaces';
// Auth is optional
const options: SonarQubeSDKAuthConfig = {
url: '',
auth: { username: '', password: '' },
};
const client = new Client(options);
// Get metrics
const response = await client.measures.component({ component: '', metricKeys: ['bugs', 'code_smells'] });
See the open issues for a list of proposed features (and known issues).
Distributed under the MIT License. See LICENSE
for more information.
Please this repository if this project helped you!