Busy.js
A lightweight JavaScript library for Busy
Install
npm install @busyorg/busyjs --save
Usage
var busy = require('@busyorg/busyjs');
var client = new busy.Client('wss://gtg.steem.house:8090');
client.call('get_accounts', ['fabien'], function(err, result) {
console.log(err, result);
});
Promises
You can also use Busy.js with promises by promisifying busy with
bluebird as in:
var busy = require('@busyorg/busyjs');
bluebird.promisifyAll(busy.Client.prototype);
It'll add a Async to all busy functions (e.g. return client.callAsync().then())
return client.callAsync('get_accounts', ['fabien']).then(function(result) {
console.log(result);
});
License
MIT.