1.0.0 • Published 5 years ago

node-sonarsoftware v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Sonar.Software Node Module

This is an unofficial Sonar's API Node client.

Test it live at https://codesandbox.io/s/github/maddog986/node-sonarsoftware

Installation

npm install node-sonarsoftware

Usage

First you need to instantiate it.

const Sonar = require('node-sonarsoftware');

const sonarClient = new Sonar({
  host: 'yourname.sonar.software',
  username: 'your username',
  password: 'your password'
});

Using the created client, call the methods you need, example:

sonarClient
  .get('accounts')
  .then(response => {
    console.log('accounts:', response);
  })
  .catch(e => console.log('ERROR:', e));

License

See License

Release Notes

See Changelog