DrVilepis / env-exampler

Generates .env.example files from .env!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

env-exampler

env-exampler is a script that generates a .env.example file based on the current .env, removing the values.

Usage

Run npx env-exampler in the directory with your .env file.

Git hook

We recommend husky to generate the git hooks.

  1. npm install husky -D
  2. npm set-script prepare "husky install"
  3. npm run prepare
  4. npx husky add .husky/pre-commit "npx env-exampler"
  5. git add .husky/pre-commit

About

Generates .env.example files from .env!

License:MIT License


Languages

Language:JavaScript 100.0%