{"_id":"@alternatefutures/env-guards","_rev":"3-c3edf77042cb472dbe41013eb58061fa","name":"@alternatefutures/env-guards","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@alternatefutures/env-guards","version":"0.1.0","_id":"@alternatefutures/env-guards@0.1.0","maintainers":[{"name":"alternatefutures","email":"system@alternatefutures.ai"}],"dist":{"shasum":"45d5a3fc35f500c5463e0c7f774fb02b7e616797","tarball":"https://registry.npmjs.org/@alternatefutures/env-guards/-/env-guards-0.1.0.tgz","fileCount":37,"integrity":"sha512-kNO5fKP8Rr7PgBNx0EuH6q4GjTSr5pjoMNZ3Al2G6s54ItbBBlB5BTxjok/9bFnjLBjOZEG+Q26zSFF2O7mlHw==","signatures":[{"sig":"MEQCIGPI+DTCEPYOIzf8H+D+DZm1x/FbWLmKEoz+Kd1nMXHmAiA/oSs4XYZEV3w7b4TBFGsM+n/W796UyZFlzl5pvQ0jvg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40991},"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"tsc":"tsc --noEmit","lint":"eslint --fix --ext .js,.jsx,.ts,.tsx src","test":"vitest run --dir src","build":"tsc","clean":"rm -rf node_modules dist*","watch":"tsc --watch","build:ci":"pnpm run build","test:coverage":"vitest run --dir src --coverage --passWithNoTests"},"_npmUser":{"name":"alternatefutures","email":"system@alternatefutures.ai"},"_npmVersion":"10.5.0","description":"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:","directories":{},"_nodeVersion":"20.12.2","dependencies":{"prettier":"^2.7.1","@types/prettier":"^2.7.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"1.3.1","typescript":"4.9.3","@vitest/coverage-v8":"1.3.1","@alternatefutures/errors":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/env-guards_0.1.0_1760029250171_0.8360758930200847","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-10-09T17:00:50.053Z","modified":"2026-04-07T01:26:06.936Z","0.1.0":"2025-10-09T17:00:50.354Z"},"description":"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:","maintainers":[{"email":"hayk@alternatefutures.ai","name":"alternatehayk"},{"email":"system@alternatefutures.ai","name":"system-af"}],"readme":"# EnvGuards\n\nThis 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:\n\n```\nimport { parseEnvs } from '@fleek-platform/env-guards';\n\nexport const envGuards = parseEnvs([\n  'HERE_LIST', //\n  'THE_ENV_VARIABLES',\n  'YOU_WANT_TO_USE',\n]);\n```\n\nand then everywhere in your package you can use it like this:\n\n```\nimport { envGuards } from './envGuards';\n\nconsole.log(envGuards.HERE_LIST);\n```\n\n## Add support of new ENV name\n\nThe 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.\n","readmeFilename":"README.md"}