I need to use a node.js package in a project. This is the one I want to use:
import fetch from ‘node-fetch’. (a library)
Can you point me towards how to do this? Thanks
I need to use a node.js package in a project. This is the one I want to use:
import fetch from ‘node-fetch’. (a library)
Can you point me towards how to do this? Thanks
What does node-fetch offer that the standard javascript fetch doesn’t?
Examples from the vendor are in node js. I remembered that Appstudio did support node.js - but I’ve never taken advantage of it.
Modern versions of node.js have fetch as a built-in function—I use it all the time for small utilities.
If you do need a package and if you are writing code for node.js, just start the code with
var fetch=require(‘node-fetch’)
Personally, I doubt you need it.