Running simple script. Got an error.
const fetch = require("node-fetch")
const url = "https://www.someurl.com"
(async ()=>{
const response = await fetch(url)
const data = await response
console.log(data)
})()
ERROR
$ node api.js TypeError: require(...)(...) is not a function
What am I missing here ? Thank you.