create account

Updated Steem Module for Node.JS by kaptainkrayola

View this thread on: hive.blogpeakd.comecency.com
· @kaptainkrayola ·
$0.02
Updated Steem Module for Node.JS
<html>
<p>I was unhappy with the module that kept coming up when doing searches because it required tanspiling and didn't work right out of the box on a normal Node.JS installation. &nbsp;I came across <a href="https://github.com/adcpm/steem">https://github.com/adcpm/steem</a> and really liked how it was built but didn't like the fact that it didn't follow the standard callback pattern of callback(err, results). &nbsp;I have changed up the code to follow the standard callback pattern and submitted a pull request to the original author. &nbsp;In the meantime if you want to use my version you can find it here: <a href="https://github.com/KaptainKrayola/steem">https://github.com/KaptainKrayola/steem.</a></p>
<p>The difference is subtle yet important if you've been a node.js developer for a while and expect modules to follow the standard callback pattern. &nbsp;If you're not sure what I mean, here's an example:</p>
<p>Original Version:</p>
<pre><code>steem.getAccounts(['ned', 'dan'], function(result, err) {<br>
 &nbsp;&nbsp;&nbsp;console.log(result, err);<br>
});</code></pre>
<p>My Updated Version:</p>
<pre><code>steem.getAccounts(['ned', 'dan'], function(err, result) {<br>
 &nbsp;&nbsp;&nbsp;console.log(err, result);<br>
});</code></pre>
<p><br></p>
</html>
👍  , , , , , , , , ,
properties (23)
authorkaptainkrayola
permlinkupdated-steem-module-for-node-js
categorynodejs
json_metadata{"tags":["nodejs"],"links":["https://github.com/adcpm/steem","https://github.com/KaptainKrayola/steem"]}
created2016-07-23 00:14:12
last_update2016-07-23 00:14:12
depth0
children7
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,274
author_reputation2,518,560,260,114
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id285,934
net_rshares24,049,832,482
author_curate_reward""
vote details (10)
@dwinblood ·
Awesome work @kaptainkrayola.   I look forward to some of the other stuff I know you have in works.
👍  
properties (23)
authordwinblood
permlinkre-kaptainkrayola-updated-steem-module-for-node-js-20160723t001522101z
categorynodejs
json_metadata{"tags":["nodejs"]}
created2016-07-23 00:15:18
last_update2016-07-23 00:15:18
depth1
children1
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length99
author_reputation383,232,067,634,988
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id285,952
net_rshares2,463,001,669
author_curate_reward""
vote details (1)
@kaptainkrayola ·
Thanks!  I think the next thing that I'll work on is the Steem Search Engine
👍  
properties (23)
authorkaptainkrayola
permlinkre-dwinblood-re-kaptainkrayola-updated-steem-module-for-node-js-20160723t002013263z
categorynodejs
json_metadata{"tags":["nodejs"]}
created2016-07-23 00:20:12
last_update2016-07-23 00:20:12
depth2
children0
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length76
author_reputation2,518,560,260,114
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id286,017
net_rshares2,958,179,343
author_curate_reward""
vote details (1)
@eristoddle ·
Thanks! I thought of doing this, but ran out of time.
👍  
properties (23)
authoreristoddle
permlinkre-kaptainkrayola-updated-steem-module-for-node-js-20160723t002547627z
categorynodejs
json_metadata{"tags":["nodejs"]}
created2016-07-23 00:22:57
last_update2016-07-23 00:22:57
depth1
children0
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length53
author_reputation566,400,151,559
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id286,056
net_rshares2,463,001,669
author_curate_reward""
vote details (1)
@fabien ·
Thank you @kaptainkrayola for the contribution! Pull requests are more than welcome! I'm the author of SteemJS repository i'm now working on the next version. I will keep you updated, if you have some suggests i'm available on Slack with "adcpm" username.
👍  
properties (23)
authorfabien
permlinkre-kaptainkrayola-updated-steem-module-for-node-js-20160723t194628252z
categorynodejs
json_metadata{"tags":["nodejs"],"users":["kaptainkrayola"]}
created2016-07-23 19:46:36
last_update2016-07-23 19:46:36
depth1
children0
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length255
author_reputation16,649,367,183,999
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id304,208
net_rshares2,512,347,476
author_curate_reward""
vote details (1)
@heimindanger · (edited)
I hope the original creator accepts your pull request, that would be smoother.

At the bottom of the README it talks about the slack, but I need a certain email to register? Wtf?
👍  
properties (23)
authorheimindanger
permlinkre-kaptainkrayola-updated-steem-module-for-node-js-20160723t004113596z
categorynodejs
json_metadata{"tags":["nodejs"]}
created2016-07-23 00:41:12
last_update2016-07-23 00:44:45
depth1
children1
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length178
author_reputation-16,507,408,909,111
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id286,324
net_rshares2,512,261,703
author_curate_reward""
vote details (1)
@kaptainkrayola ·
I think that's the normal Steem Slack, not sure what email or anything it requires.  Sorry I can't be more help there.
properties (22)
authorkaptainkrayola
permlinkre-heimindanger-re-kaptainkrayola-updated-steem-module-for-node-js-20160723t014120132z
categorynodejs
json_metadata{"tags":["nodejs"]}
created2016-07-23 01:41:18
last_update2016-07-23 01:41:18
depth2
children0
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length118
author_reputation2,518,560,260,114
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id287,172
net_rshares0
@kaptainkrayola ·
Update: the original author just merged my code into the repository.
👍  ,
properties (23)
authorkaptainkrayola
permlinkre-kaptainkrayola-updated-steem-module-for-node-js-20160723t015111680z
categorynodejs
json_metadata{"tags":["nodejs"]}
created2016-07-23 01:51:09
last_update2016-07-23 01:51:09
depth1
children0
last_payout2016-08-24 18:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length68
author_reputation2,518,560,260,114
root_title"Updated Steem Module for Node.JS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id287,284
net_rshares5,421,181,012
author_curate_reward""
vote details (2)