Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ducksboard-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ducksboard-node

A Ducksboard API wrapper for node.js

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Ducksboard-node

Build Status   Coverage Status

Ducksboard-node is a Ducksboard API wrapper on node.js

This is a simple API wrapper to communicate with Ducksboard's Push API

Installation

Install the module with: npm install ducksboard-node

Getting Started

var options = {
	api_key : '#your api key#'
};

var DucksboardNode = require('ducksboard-node');
var dn = new DucksboardNode(options);

// push a simple value to 'my_widget'
dn.pushValue(123, 'my_widget', function(err) {
	if (err){
		console.error('There was an error'); //error pushing to ducksboard server.
	}
});

// push a delta (increment) to 'my_widget'
dn.pushDelta(-4, 'my_widget', function(err) {
	if (err){
		console.error('There was an error'); //error pushing to ducksboard server.
	}
});

// push a value with a timestamp to 'my_widget'
dn.pushValueWithTimestamp(101, +new Date(), 'my_widget', function(err) {
	if (err){
		console.error('There was an error'); //error pushing to ducksboard server.
	}
});

// delete all value of 'my_widget'
dn.deleteValues('my_widget', function(err) {
	if (err){
		console.error('There was an error'); //error pushing to ducksboard server.
	}
});

Run the tests with: npm test (requires mocha)

License

Copyright (c) 2014 José M. Pérez Licensed under the MIT license.

Keywords

FAQs

Package last updated on 08 Feb 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc