saadtazi / firefox-profile-js

Firefox Profile creation using nodejs and CLI
MIT License
60 stars 30 forks source link

Drop `async` #116

Closed fregante closed 3 years ago

fregante commented 3 years ago

Callback hell should be behind us. I replaced async module with promises and async functions (Node 7.6+). Promisify/callbackify (Node 8+) was used to avoid overhauling/promisifying the whole API.

You can see how _addonDetails makes a lot more sense now since it's like 70% shorter.

saadtazi commented 3 years ago

Wow! thank you for this PR.