EnvExampleGenerator: Simplify Environment Variable Management. Generate .env.example files by extracting keys from your existing .env files, removing sensitive values, and ensuring consistent configurations across your team. Streamline project setup and improve onboarding with a single command.
You can run EnvExampleGenerator directly using npx (or the equivalent for Yarn and pnpm):
If you prefer, you can install EnvExampleGenerator globally or locally:
```bash npm install -g env-example-generator # Global npm install env-example-generator # Local ``` ```bash yarn global add env-example-generator # Global yarn add env-example-generator # Local ``` ```bash pnpm install -g env-example-generator # Global pnpm install env-example-generator # Local ```-i, --input : Path to the input .env file. Default: .env, .env.local, .env.development, .env.production. -o, --output : Path to the output .env.example file. Default: .env.example. -t, --typescript: Generate the env.d.ts file with type definitions. -r, --remove-comments: Remove comments from the .env.example file. -I, --interactive: Interactive mode. -c, --include-comments: Include comments from the .env file in the .env.example file. -d, --delimiter : Delimiter used in the .env file. Default: =.
npx env-example-generator -i .env -o .env.example -tnpx env-example-generator -Inpx env-example-generator -i .env -o .env.example -c -d ':'Contributions are welcome! Feel free to open issues and pull requests.
MIT
@joaofaveri João Paulo de Faveri