guardian-of-env
v1.2.8
Published
ensure .env files are all the same
Downloads
2
Maintainers
Readme
guardian-of-env
Screenshot
Installation
yarn add guardian-of-env --dev
Configuration
in your project folder, execute guardian-of-env
, and guardian-of-env
compares .env
and .env.example
file by default.
npx guardian-of-env
or set more files that you want to compare
npx guardian-of-env .env .env.example .env.exmaple.example
Work with pre-commit
install pre-commit
first, and follow the configuration of package.json below
{
"scripts": {
"guardian-of-env": "guardian-of-env"
},
"pre-commit": [
"guardian-of-env"
],
}
Work with travis-ci
or you want to compare your .env files in the ci phase
package.json
{
"scripts": {
"guardian-of-env": "./node_modules/.bin/guardian-of-env .env .env.test"
},
}
.travis.yml
script:
- yarn guardian-of-env