2.0.1 ⢠Published 1 year ago
@mrathod05/create-env-example v2.0.1
š ļø create-env-example
A simple CLI tool to create an env.example file by extracting keys from environment-specific .env.<env> files. Built in Rust and published as a cross-platform binary npm package.
š¦ Installation
You don't need to install it globally! Use it directly via npx:
npx create-env-exampleOr install globally:
npm install -g @mrathod05/create-env-exampleš Usage
npx create-env-exampleYou will be prompted to choose or enter an environment (like local, development, production). It will then generate an env.example from .env..
š” Example Example
$ npx create-env-example
? Choose environment (or type manually): development
š Creating env.example from .env.development
ā
env.example created successfully.š§ How It Works
Reads from .env. (e.g., .env.production)
Extracts all KEY=value pairs
Ignores comments and empty lines
Outputs keys only in the format KEY="" to env.example
š§āš» Developer
Meet Rathod