For maximum portability I'm not doing import 'dotenv/config' within my code, but I'm doing
node -r dotenv/config index.js
Now, I'm starting to use nodemon, which says in README,
To use
nodemon, replace the wordnodeon the command line when executing your script.
However, when I'm doing nodemon -r dotenv/config index.js, I only get an usage prompt:
Usage: nodemon [nodemon options] [script.js] [args]
See "nodemon --help" for more.
Is hard-coding import 'dotenv/config' within my code the only option that I have?