Skip to content

pekac45/dotenv-sample-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published