envample
Version:
Generates .env.example from your .env file
72 lines (48 loc) • 1.02 kB
Markdown
Generates .env.example or .env.* file from your .env file.
This a quick way to keep your .env file and your .env.example file in sync.
```bash
npx envample
```
```sh
npm i -g envample
```
or in your project
```sh
npm i -D envample
```
```sh
envample
envample .env .env.example
```
If the arguments are not specified `.env` and `.env.example` will be used
Lines preceded with `
Lines preceded with `
Lines not preceded by an `
Lines preceded with `
All comments except those marked with `
.env
```sh
GIT=true
DEBUG=true
SECRET=secret
IGNORED=true
```
.env.example
```sh
GIT=true
DEBUG=false
SECRET=
```