3 ms·
What's the alternative to Request? I see Mikeal has made Bent [1], but I'm not sure if the new, alien syntax is worth it? Also found got [2], thoughts? [1] htt
by namanyayg 8y ago
What's the alternative to Request? I see Mikeal has made Bent [1], but I'm not sure if the new, alien syntax is worth it? Also found got [2], thoughts?
[1] https://github.com/mikeal/bent https://github.com/mikeal/bent
[2] https://github.com/sindresorhus/got https://github.com/sindresorhus/got
- Raed667 8y agobent seems too "bare-bones" for my daily usage. If you like that good for you, but I have been using axios[0] which is more heavy weight. https://github.com/axios/axios https://github.com/axios/axios
- pier25 8y agoProblem with Axios is that it has almost 500 open issues and not enough maintainers. We've moved to fetch, which is not as handy, but is the standard lib in the browser. Actually we use wretch which adds a more convenient API on top of fetch. https://github.com/elbywan/wretch https://github.com/elbywan/wretch For Node we use node-fetch which mimics the fetch API using the native HTTP module in the background: https://github.com/bitinn/node-fetch https://github.com/bitinn/node-fetch
- Raed667 8y agoI'm using axios in production for over 2 years now. Can you point me to a certain issue you had I'd need to anticipate (or check if I already have)?
- pier25 8y agoI've used it in production for 3-4 years with no issues (that I know of) but it's a ticking time bomb. https://github.com/axios/axios/issues/1965 https://github.com/axios/axios/issues/1965 https://www.reddit.com/r/javascript/comments/an94xq/axios_needs_maintainers/ https://www.reddit.com/r/javascript/comments/an94xq/axios_ne...
- dimgl 8y agoHow is it a ticking time bomb if all of the tests pass in that package?