kessler / node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
MIT License
279 stars 45 forks source link

Promise support? #55

Closed FireController1847 closed 6 years ago

FireController1847 commented 6 years ago

Is it possible to get support for promises instead of using callbacks to prevent callback hell?

Rage Edit already has this implementation, so it may be time to catch up.

kessler commented 6 years ago

@FireController1847 I strongly suggest that next time you ask someone to do something for you with their free time, you should tone down on the condescending statements.

As for your statement regarding callback hell, I suggest this read: http://thecodebarbarian.com/2015/03/20/callback-hell-is-a-myth

nhz-io commented 6 years ago

@FireController1847 https://nodejs.org/docs/latest-v8.x/api/util.html#util_util_promisify_original

Also, adding promise polyfill for old node versions will make it all even slower

FireController1847 commented 6 years ago

Condescending statements?

nhz-io commented 6 years ago

@FireController1847 , so it may be time to catch up. ← this