markjgsmith

Linkblog

Node.js 20.6.0: Say Goodbye to 'dotenv' - Tutorial on how to use the new --env-file nodejs flag to set environment vatiables from a file. Something the article doesn’t mention which could be useful in unixy environments, the 'export' keyword is ignored when prepended to a variable, which means you can use the env file from a shell script as well as via node command line argument. Might be useful in development or in places where you need to use the settings in other non-nodejs places. See nodejs docs for details. dev.to #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.