I'm extremely newbie at Node js. Please let me know how can i work with this node client https://www.npmjs.com/package/serp
const serp = require("serp");
var options = {
host : "google.fr",
qs : {
q : "test",
filter : 0,
pws : 0
},
num : 100
};
const links = await serp.search(options);
When I run this the code, I receive the following error
SyntaxError: await is only valid in async function
VERY grateful for all help!