Closed erf closed 3 years ago
Why not let needle.get return a promise if no callback is given?
Then i could simply do:
const res = await needle.get(uri, params)
Yes, also right. Do you have time for a PR? :)
I'd like to help, but I'm a little hesitant as i have not done a lot of javascript work in a while, and i don't know your codebase well, but i can try if i find time.
Why not let needle.get return a promise if no callback is given?
Then i could simply do: