feross / simple-get

Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines
MIT License
401 stars 50 forks source link

Promisify return value to allow async/await #43

Closed coreylight closed 5 years ago

coreylight commented 6 years ago

If the library allowed a promise in addition to a callback flow, it would be helpful for code utilizing async/await.

Happy to take a stab implementing if the feature is wanted.

mcollina commented 6 years ago

Have a look at https://github.com/feross/simple-get/pull/41!