crenvex
v1.0.5
Published
Generate .env.example easily
Maintainers
Readme
crenvex
🛠️ Generate
.env.examplefiles easily from.env-style environment files.
crenvex is a lightweight CLI tool to help you generate .env.example files from your existing .env files. It removes sensitive values while optionally preserving or removing comments and blank lines.
📦 Installation
Install globally via npm:
npm install -g crenvexor use it directly with npx:
npx crenvex🚀 Usage
crenvex [inputFile] [options]- Default for
- inputFile : .env
- --output : .env.example
⚙️ Options
| Option | Alias | Description | | ---------------- | ----- | ------------------------------------------ | | --output | -o | Specify output filename | | --no-empty-lines | -nel | Remove all empty lines from the output | | --no-comments | -nc | Remove all comment lines (starting with #) |
📘 Examples
Basic usage
crenvexSpecify an input file
crenvex .env.localSpecify both input and output file
crenvex .env.local -o .env.local.exampleRemove comments
crenvex -ncRemove Empty lines
crenvex -nel