In the few Node-RED nodes that I've created that wrap an API, I've been using request to make HTTP request calls. I wonder if I should switch the nodes to use got ? Or axios?
I converted one of my node-red packages from request() to got().
It executes essentially the same but I didn't run any performance tests.
Downside would be that my nodes would require node.js v8 or higher.
I did a quick unscientific survey on my system - limited by the nodes that I have installed on my Linux system.
If anyone in the community wanted to find a way to start contributing, this would be very welcome first issue to tackle.... The hard part is ensuring 100% compatibility with the node's current behaviour with the request module. Just let us know before you start playing with it.
Thanks for the articles. Those links are what kicked me into thinking about migrating. I've converted my Node-RED nodes to use got for network requests. I compared several examples and read some of the documentation. got was much easier to implement than axios in my relatively simple use case.
-- John