1.0.8 • Published 1 year ago
env-exampler v1.0.8
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.
npm install husky -D
npm set-script prepare "husky install"
npm run prepare
npx husky add .husky/pre-commit "npx env-exampler"
git add .husky/pre-commit