Hey JS developers!
The package is now separate in 2 objects. The first is the steem.api and second is steem.formatter. The API are the standard methods for exploring and interact with the blockchain and formatter will be used to make easy for you to turn a raw data to readable data. Did you ever tried to turn a reputation number to a % like they does in steemit.com? Here is how i would do with steem package:
steem.api.getAccounts(['dan'], function(err, result) {
var reputation = steem.formatter.reputation(result[0].reputation);
console.log(reputation);
});
steem.api.getState('trending/steemit', function(err, result) {
console.log(err, result);
});
Did you know that work for most of the url? try with '@fabien/posts' or '@fabien/feed' or 'hot'.
steem.api.streamOperations(function(err, result) {
if (!err && result[1].author == 'fabien') {
console.log(result);
}
});
steem.api.getFollowing('ned', 0, 'blog', 10, function(err, result) {
console.log(result);
});
https://www.npmjs.com/package/steem
https://github.com/adcpm/steem
I'm looking for contributor for Steem.js, Steem API and others Open Source Steem projects. Interested? Contact me on the rocket chat my username is @fabien, or on the channel #steemjs. There is a lot stuff to do, i can put you on track. All the Steem Dollar rewards of this article will be used to pay contributor to improve these Steem Open Source projects.
Best