Glances client for Node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

node-glances NPM version

Nicolargo's [Glances] (https://github.com/nicolargo/glances) client for Node.js available on [NPM] (https://npmjs.org/package/glances)

Requirements

  • Node.js >= 0.8
  • Glances server <= 1.7

Installation

npm install glances

Usage

var glances = require('node-glances');

var client = glances.createClient({ host: 'your-url' });

client.call('api-method(ie: getAll)', function(error, value){
    if(error) {
        console.log(error.faultString);
    } else {
        console.dir(value);
    }
});

Documentation

All available API methods for Glances are available [here] (https://github.com/nicolargo/glances/blob/master/docs/glances-doc.rst).