/hive-pusher-js

A code pusher for hive written in Javascript

Primary LanguageJavaScriptMIT LicenseMIT

hive-pusher-js

A code pusher for hive written in Javascript

npm package

Dependency Status codebeat badge License

Usage

First, install the package

npm install hive-pusher --save-dev

Then, in your code, initialize it, and send your message to hive

let Pusher = require('hive-pusher')
let pusher = new Pusher('your hive address', 'your token')
pusher.send('Hello from Node.js')

For more settings

pusher.setPath('your new hive path')
pusher.setToken('your another token')