Environment Package
May 24, 2025 ยท View on GitHub
This package contains code which creates env values. To use the code in the package, you need to follow those steps:
-
Add a new record to
.env(NEED TO CONTAINCEB_PREFIX),- If you want via cli:
- Add it as argument like:
pnpm set-global-env CLI_CEB_NEXT_VALUE=new_data ...(NEED TO CONTAINCLI_CEB_PREFIX)
Important
CLI_CEB_DEVandCLI_CEB_FIREFOXarefalseby default
All CLI values are overwriting in each call, that's mean you'll have access to values from current script run only.- If you want dynamic variables go to
lib/index.tsand editdynamicEnvValuesobject.
-
Use it, for example:
console.log(process.env['CEB_EXAMPLE']);or
console.log(process.env.CEB_EXAMPLE);but with first solution, autofill should work for IDE:

-
You are also able to import const like
IS_DEVfrom@extension/envlike:import { IS_DEV } from '@extension/env';For more look ENV CONST