CLI tool to read and parse .env
files
npm install -D @codigex/envnext
Writes the contents of the .env
file to a new file called ./environments/env.ts
.
npx envnext -p .env -o ./environments -e ts
Writes the contents of all the .env.*
files in ./envs
to their respective destinations in the ./environments
directory.
npx envnext -p ./envs -o ./environments -e ts
-p, --path <path> # Path to the .env file or directory containing .env.* files. (default: ".env")
-o, --output <path> # Output directory for generated files.
-e, --ext <extension> # File extension (js | ts) for generated files. (default: "ts")
-h, --help # Display help information.
To see all available options and usage information, run the following command:
npx envnext --help