2.0.1 • Published 1 year ago

@mrathod05/create-env-example v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

šŸ› ļø 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-example

Or install globally:

npm  install  -g  @mrathod05/create-env-example

šŸš€ Usage

npx  create-env-example

You 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

2.0.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago