1.0.2 • Published 3 years ago

dotenv-sample-generator v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

dotenv-sample-generator

I always forget to update .env-sample after I add new key into it. Running dotenv-generate will remove all secrets and only save the keys and comments

Usage

  • Install

npm i dotenv-sample-generator --save-dev

  • Add this to your scripts in package.json
"scripts": {
  "dotenv-generate": "dotenv-generate"
},
  • Run as

npm run dotenv-generate

API

The command takes 2 optional flags.

  • --env (default .env) - if your .env file is called something else, you can use this flag to change the name like

    • --env .enviroment
  • --sample (default .env-sample) - the filename to generate, like

    • --sample .env-baseline
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago