fvdm / nodejs-haveibeenpwned

API methods for HaveIBeenPwnd.com (unofficial)
https://www.npmjs.com/package/haveibeenpwned
The Unlicense
17 stars 5 forks source link

Promise & async/await support #17

Open daytonlowell opened 4 years ago

daytonlowell commented 4 years ago

Would you accept a PR that made methods return a Promise if a callback wasn't passed?

fvdm commented 4 years ago

Thanks. I'll check it out after my vacation.

The Promise existence check is not needed. The next version is going to support node >= v10, following the LTS release schedule.