{"_id":"@burlzad/config","_rev":"1-491a6d970c2f26266e67483cb3ae56e0","name":"@burlzad/config","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.2":{"name":"@burlzad/config","version":"0.0.2","keywords":["config","backend","repository"],"author":{"name":"52782469+alexburley@users.noreply.github.com."},"license":"MIT","_id":"@burlzad/config@0.0.2","maintainers":[{"name":"burlzad","email":"alexburley3@live.co.uk"}],"homepage":"https://github.com/alexburley/burlzad-config","dist":{"shasum":"92c645b29cc1e307b162eb3572134551d409b43a","tarball":"https://registry.npmjs.org/@burlzad/config/-/config-0.0.2.tgz","fileCount":27,"integrity":"sha512-xl3aXxeqX4yRk6n9x2Z9KU2hUGO/P7Xeyc2xuoWfdJORUOii4RjBmE2aZ/vYTXDA5X5Df5teu8OU73nz4N8kkw==","signatures":[{"sig":"MEQCICE4j2MNNzxu5XN3/P1gTRgCMWuhxAQO/ixjtuVRVjJAAiAbIGego9vbAAitVBRL5wjInAcCbbNZsIIuIoIFIseC2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23043},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"49f45cf8389f8bb85c285a4abecb3443c7b4e348","scripts":{"ci":"npm run build && npm run check-format && npm run check-exports && npm run test","lint":"prettier --write .","test":"vitest run","build":"tsc","version":"npx changeset","check-format":"prettier --check .","check-exports":"attw --pack . --ignore-rules=cjs-resolves-to-esm","local-release":"npm run ci && changeset version && changeset publish && git push","prepublishOnly":"npm run ci"},"_npmUser":{"name":"burlzad","email":"alexburley3@live.co.uk"},"_npmVersion":"10.8.3","description":"A zero dependency utility library to build configs","directories":{},"_nodeVersion":"22.6.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.1","ts-node":"^10.9.2","prettier":"^3.3.3","typescript":"^5.5.4","@types/node":"^22.5.0","@changesets/cli":"^2.27.8","@arethetypeswrong/cli":"^0.15.4"},"_npmOperationalInternal":{"tmp":"tmp/config_0.0.2_1727454085311_0.2827278793312926","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@burlzad/config","version":"0.0.3","author":{"name":"52782469+alexburley@users.noreply.github.com."},"description":"A zero dependency utility library to build configs","keywords":["config","backend","repository"],"homepage":"https://github.com/alexburley/burlzad-config","main":"dist/index.js","scripts":{"build":"tsc","check-format":"prettier --check .","lint":"prettier --write .","check-exports":"attw --pack . --ignore-rules=cjs-resolves-to-esm","ci":"npm run build && npm run check-format && npm run check-exports && npm run test","test":"vitest run","prepublishOnly":"npm run ci","local-release":"npm run ci && changeset version && changeset publish && git push","version":"npx changeset"},"devDependencies":{"@arethetypeswrong/cli":"^0.15.4","@changesets/cli":"^2.27.8","@types/node":"^22.5.0","prettier":"^3.3.3","ts-node":"^10.9.2","typescript":"^5.5.4","vitest":"^2.1.1"},"license":"MIT","type":"module","_id":"@burlzad/config@0.0.3","gitHead":"275a880692b914d3844f80a5697c8ee349d6e8b4","types":"./dist/index.d.ts","_nodeVersion":"22.6.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-tolgRO3kePawQM8vLDPBC8eKD6jqT9hC4eD4j/M7iV4OZEkdmNGcCpmmV+cxmg1Y78ufBNcnGqPueew2KcmOaQ==","shasum":"2e588f244341ea064b3b4e086580ee2326690dfc","tarball":"https://registry.npmjs.org/@burlzad/config/-/config-0.0.3.tgz","fileCount":27,"unpackedSize":23986,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVnB0KS+tpRA/LHMZyh6t2GtDUsvEPqRJESDubWMdxhAIhAPXIyut+NAjgQ5u/SacR0vi7QR+DVAIuOxu8uJ7wk4zM"}]},"_npmUser":{"name":"burlzad","email":"alexburley3@live.co.uk"},"directories":{},"maintainers":[{"name":"burlzad","email":"alexburley3@live.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/config_0.0.3_1727456785563_0.6526113148547568"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-27T16:21:25.219Z","modified":"2024-09-27T17:06:26.296Z","0.0.2":"2024-09-27T16:21:25.520Z","0.0.3":"2024-09-27T17:06:25.742Z"},"author":{"name":"52782469+alexburley@users.noreply.github.com."},"license":"MIT","homepage":"https://github.com/alexburley/burlzad-config","keywords":["config","backend","repository"],"description":"A zero dependency utility library to build configs","maintainers":[{"name":"burlzad","email":"alexburley3@live.co.uk"}],"readme":"<!-- ⚠️ This README has been generated from the file(s) \"blueprint.md\" ⚠️-->\n\n[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)](#burlzadconfig)\n\n# ➤ @burlzad/config\n\nA zero dependency utility library to build configs\n\n## Introduction\n\n`@burlzad/config` organizes configuration for your service.\n\nIt allows you to define different environments in which to run and\nprovide a system to resolve environment variables to configuration values.\n\nIt leans upon static typing to ensure access is valid and is simply a thin\nlayer to validate config is loaded correctly and allow you to access the types\nyou defined.\n\n## Principles\n\n- _Simple_ - Get started fast\n- _Lightweight_ - A thin layer to abstract your config\n- _Zero dependency_ - No worries about complicated dependency resolution\n\n## Quick Start\n\n1. Install\n\n```bash\nnpm i @burlzad/config\n```\n\n2. Configure\n\n```ts\nexport const config = configure({\n  test: () => ({\n    SOME_ENV_VAR: 'someTestEnvVar',\n  }),\n  production: () => ({\n    SOME_ENV_VAR: 'someProdEnvVar',\n  }),\n  DEFAULT: (source = {}) => ({\n    SOME_ENV_VAR: source.SOME_ENV_VAR || 'default',\n  }),\n});\n```\n\n3. Use\n\n```ts\nimport config from './config';\n\nif (config.SOME_ENV_VAR === 'someProdEnvVar') {\n  doSomething();\n}\n```\n","readmeFilename":"README.md"}