3 ms·
I keep seeing that `args = process.argv.slice(2)` line to skip past `node script.js` I ended up settling for it as well (I couldn't find anything better, nor m
by sebstefan 1y ago
I keep seeing that `args = process.argv.slice(2)` line to skip past `node script.js`
I ended up settling for it as well (I couldn't find anything better, nor make it break) but I'd be really surprised if it was the way to go
Like `node --enable-tracing script.js --name=John --age 30 --verbose`
This works because node seems to hide --enable-tracing to the underlying script
But would it work with Bun & Deno...? Is that standard...?