1.2.0 • Published 10 months ago
@fleekxyz/env-guards v1.2.0
EnvGuards
This package is solving not direct usage of process.env
. Instead create in src
of your package where you need secrets file secrets.ts
and use it like this:
import { parseEnvs } from '@fleekxyz/env-guards';
export const envGuards = parseEnvs([
'HERE_LIST', //
'THE_ENV_VARIABLES',
'YOU_WANT_TO_USE',
]);
and then everywhere in your package you can use it like this:
import { envGuards } from './envGuards';
console.log(envGuards.HERE_LIST);
Add support of new ENV name
The list of strings (name of envs) that you can pass to parseEnvs
function is limited. If you want to extend it and add new env name, feel free to add it in this file: /packages/env-guards/src/lib/availableEnvKeys.ts
and build the package before usage.
1.2.0
10 months ago
1.1.0-test.12
10 months ago
1.1.0-test.11
10 months ago
1.1.0-test.2
10 months ago
1.1.0-test.3
10 months ago
1.1.0-test.4
10 months ago
1.1.0-test.5
10 months ago
1.1.0-test.7
10 months ago
1.1.0
10 months ago
1.1.0-test.1
10 months ago
1.1.0-test
10 months ago
1.0.0
10 months ago
1.0.1-mount-fuji-202402281430
10 months ago
1.0.1-mount-fuji-202402281338
10 months ago
1.0.1-mount-fuji-202402281052
10 months ago
1.0.0-mount-fuji-202402271907
10 months ago