Skip to content

Files

Latest commit

9d17147 · Jul 18, 2025

History

History

genenv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 15, 2024
Oct 15, 2024
Oct 15, 2024
Oct 22, 2024
Jul 18, 2025
Jul 18, 2025
Nov 11, 2024
Oct 15, 2024

readme.md

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

Disclaimer ⚠️

This package is published under the @bpinternal organization. All packages of this organization are meant to be used by the Botpress team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly.

The Botpress Engineering team.