@bpinternal/genenv
v0.0.1
Published
Small CLI to generate typescript file exporting constants from environment variables.
Downloads
1,032
Maintainers
Keywords
Readme
GenEnv
Small CLI to generate typescript file exporting constants from environment variables.
Usage
Program:
export MY_ENV1=foo
export MY_ENV2=bar
npx genenv gen -o ./.secrets/index.ts -e MY_ENV1 -e MY_ENV2 -e MY_ENV3
cat ./.secrets/index.ts
Output:
export const MY_ENV1 = 'foo'
export const MY_ENV2 = 'bar'
export const MY_ENV3 = '$MY_ENV3' // default value