votifier2

0.0.6 • Public • Published

votifier2

This library supports network protocol v2 of the NuVotifier plugin.

Installation

npm install --save votifier2

Usage

    var vote = require('votifier2');
 
    var options = {
        host: '127.0.0.1',
        port: 8192,
        token: 'MYTOKEN',
        vote: {
            username: 'USERNAME',
            address: '127.0.0.1',
            timestamp: new Date().getTime(),
            serviceName: 'TestService'
        }
    };
 
    vote(options, function(err) {
        if (err) {
            console.log(err);
        } else {
            console.log('success');
        }
    });

Readme

Keywords

Package Sidebar

Install

npm i votifier2

Weekly Downloads

2

Version

0.0.6

License

MIT

Last publish

Collaborators

  • ichbinjoe
  • minimum