@codigex/envnext
v3.0.0
Published
CLI tool to read and parse .env files
Downloads
14
Readme
Envnext
CLI tool to read and parse .env files
Installation
npm install -D @codigex/envnext
Usage
Writes the contents of the .env file to a new file called ./environments/env.ts.
npx envnext -p .env -o ./environments -e tsWrites the contents of all the .env.* files in ./envs to their respective destinations in the ./environments directory.
npx envnext -p ./envs -o ./environments -e tsOptions
-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.Help
To see all available options and usage information, run the following command:
npx envnext --help