With .env
Read and then apply .env file in the working directory, assuming the .env exists
Usage
require("with-env")();
console.log(process.env.MY_VARIABLE);
Use dotenv package instead
Read and then apply .env file in the working directory, assuming the .env exists
Read and then apply .env file in the working directory, assuming the .env exists
require("with-env")();
console.log(process.env.MY_VARIABLE);
ee3e02f
Thanks @MatthewSH! - added npm ignore0bde08e
Thanks @MatthewSH! - typescript and monorepo