<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. 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). I have changed up the code to follow the standard callback pattern and submitted a pull request to the original author. 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. 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> console.log(result, err);<br> });</code></pre> <p>My Updated Version:</p> <pre><code>steem.getAccounts(['ned', 'dan'], function(err, result) {<br> console.log(err, result);<br> });</code></pre> <p><br></p> </html>
author | kaptainkrayola |
---|---|
permlink | updated-steem-module-for-node-js |
category | nodejs |
json_metadata | {"tags":["nodejs"],"links":["https://github.com/adcpm/steem","https://github.com/KaptainKrayola/steem"]} |
created | 2016-07-23 00:14:12 |
last_update | 2016-07-23 00:14:12 |
depth | 0 |
children | 7 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.024 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,274 |
author_reputation | 2,518,560,260,114 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 285,934 |
net_rshares | 24,049,832,482 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
menace.coin | 0 | 383,868,574 | 100% | ||
dwinblood | 0 | 2,958,179,343 | 100% | ||
kaptainkrayola | 0 | 2,512,261,703 | 100% | ||
heimindanger | 0 | 960,960,196 | 100% | ||
siol | 0 | 590,028,770 | 100% | ||
eristoddle | 0 | 1,097,316,527 | 100% | ||
aqlsam | 0 | 203,825,433 | 100% | ||
logic | 0 | 67,252,414 | 100% | ||
fabien | 0 | 15,276,139,522 | 100% | ||
mkotibabu | 0 | 0 | 100% |
Awesome work @kaptainkrayola. I look forward to some of the other stuff I know you have in works.
author | dwinblood |
---|---|
permlink | re-kaptainkrayola-updated-steem-module-for-node-js-20160723t001522101z |
category | nodejs |
json_metadata | {"tags":["nodejs"]} |
created | 2016-07-23 00:15:18 |
last_update | 2016-07-23 00:15:18 |
depth | 1 |
children | 1 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 99 |
author_reputation | 383,232,067,634,988 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 285,952 |
net_rshares | 2,463,001,669 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kaptainkrayola | 0 | 2,463,001,669 | 100% |
Thanks! I think the next thing that I'll work on is the Steem Search Engine
author | kaptainkrayola |
---|---|
permlink | re-dwinblood-re-kaptainkrayola-updated-steem-module-for-node-js-20160723t002013263z |
category | nodejs |
json_metadata | {"tags":["nodejs"]} |
created | 2016-07-23 00:20:12 |
last_update | 2016-07-23 00:20:12 |
depth | 2 |
children | 0 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 76 |
author_reputation | 2,518,560,260,114 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 286,017 |
net_rshares | 2,958,179,343 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dwinblood | 0 | 2,958,179,343 | 100% |
Thanks! I thought of doing this, but ran out of time.
author | eristoddle |
---|---|
permlink | re-kaptainkrayola-updated-steem-module-for-node-js-20160723t002547627z |
category | nodejs |
json_metadata | {"tags":["nodejs"]} |
created | 2016-07-23 00:22:57 |
last_update | 2016-07-23 00:22:57 |
depth | 1 |
children | 0 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 53 |
author_reputation | 566,400,151,559 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 286,056 |
net_rshares | 2,463,001,669 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kaptainkrayola | 0 | 2,463,001,669 | 100% |
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.
author | fabien |
---|---|
permlink | re-kaptainkrayola-updated-steem-module-for-node-js-20160723t194628252z |
category | nodejs |
json_metadata | {"tags":["nodejs"],"users":["kaptainkrayola"]} |
created | 2016-07-23 19:46:36 |
last_update | 2016-07-23 19:46:36 |
depth | 1 |
children | 0 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 255 |
author_reputation | 16,649,367,183,999 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 304,208 |
net_rshares | 2,512,347,476 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kaptainkrayola | 0 | 2,512,347,476 | 100% |
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?
author | heimindanger |
---|---|
permlink | re-kaptainkrayola-updated-steem-module-for-node-js-20160723t004113596z |
category | nodejs |
json_metadata | {"tags":["nodejs"]} |
created | 2016-07-23 00:41:12 |
last_update | 2016-07-23 00:44:45 |
depth | 1 |
children | 1 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 178 |
author_reputation | -16,507,408,909,111 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 286,324 |
net_rshares | 2,512,261,703 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kaptainkrayola | 0 | 2,512,261,703 | 100% |
I think that's the normal Steem Slack, not sure what email or anything it requires. Sorry I can't be more help there.
author | kaptainkrayola |
---|---|
permlink | re-heimindanger-re-kaptainkrayola-updated-steem-module-for-node-js-20160723t014120132z |
category | nodejs |
json_metadata | {"tags":["nodejs"]} |
created | 2016-07-23 01:41:18 |
last_update | 2016-07-23 01:41:18 |
depth | 2 |
children | 0 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 118 |
author_reputation | 2,518,560,260,114 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 287,172 |
net_rshares | 0 |
Update: the original author just merged my code into the repository.
author | kaptainkrayola |
---|---|
permlink | re-kaptainkrayola-updated-steem-module-for-node-js-20160723t015111680z |
category | nodejs |
json_metadata | {"tags":["nodejs"]} |
created | 2016-07-23 01:51:09 |
last_update | 2016-07-23 01:51:09 |
depth | 1 |
children | 0 |
last_payout | 2016-08-24 18:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 68 |
author_reputation | 2,518,560,260,114 |
root_title | "Updated Steem Module for Node.JS" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 287,284 |
net_rshares | 5,421,181,012 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dwinblood | 0 | 2,958,179,343 | 100% | ||
kaptainkrayola | 0 | 2,463,001,669 | 100% |