Skip to content

Minimal node utility to scan all process.env references in a node project

Notifications You must be signed in to change notification settings

tamdilip/env-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

env-gen Node.js Package

.env file generator by extracting all environment variables referenced in node js project through process.env.*

usage

$ cd <node app path to scan>
$ npx env-gen

Optional

Silent mode

Append --silent to the main command npx env-gen to simply scan and generate .env file without prompting any inputs and displaying log traces.

$ npx env-gen --silent

Path exclusion

Place env-gen-config.js under the same path from where you are executing npx env-gen to exclude paths from scanning in the below format.

module.exports = { 
    exclude: ['/node_modules', '/coverage'] //default
};