dashing-client

0.0.5 • Public • Published

Benbria DashingClient

Sends stats to Dashing.

Contents

What it Does

DashingClient sends stats to Dashing, the exceptionally handsome dashboard framework.

In much the same way that you can send data from the command line using curl:

curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }'\
\http://localhost:3030/widgets/welcome

You can send data using DashingClient from your node.js program:

DashingClient = require('dashing-client');

dashing = new DashingClient("http://localhost:3030", "YOUR_AUTH_TOKEN");
dashing.send("welcome", {text: "Hey, look what I can do!"}, function(err, resp, body) {
    // Do callback stuff
});

Note that you can also pass authentication credentials for basic_auth:

DashingClient = require('dashing-client');

dashing = new DashingClient("http://localhost:3030", "YOUR_AUTH_TOKEN",
  {auth: {user: "user", pass: "secret"}});

Installation

Install with:

npm install dashing-client

Or, add to your package.json

"dependencies": {
  "dashing-client": ">=0.0.1"
}

Readme

Keywords

Package Sidebar

Install

npm i dashing-client

Weekly Downloads

7

Version

0.0.5

License

none

Last publish

Collaborators

  • hanutb
  • tyler-benbria
  • jordan.parsons
  • jefftudor
  • arnoldelite
  • lucaspawley-benbria
  • vincent-benbria
  • orelbibenbria
  • dule
  • jwalton