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.
$ locate node_modules/request/request.js | grep node-red | wc -l 36 $ locate node_modules/got/index.js | grep node-red | wc -l 2 $ locate node_modules/axios/index.js | grep node-red | wc -l 6