I was using shelljs before where i used to call a command like so:
require('shelljs/global');
let res = exec('echo hello').stdout
But I would like to achieve this in node without relying on shelljs. Thing is I've found examples with node and I'm having trouble with quite a few of them. Thanks for the help