{"_id":"core-dotenv","name":"core-dotenv","dist-tags":{"latest":"1.4.1"},"versions":{"1.4.1":{"name":"core-dotenv","version":"1.4.1","description":"Base configuration that uses env-var and dotenv","keywords":["config","env-var","dotenv","typescript"],"main":"lib/env-var-base.js","types":"lib/env-var-base.d.ts","author":{"name":"CapiraOliel3220@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/capira-0x/core-dotenv.git"},"bugs":{"url":"https://github.com/capira-0x/core-dotenv/issues"},"homepage":"https://github.com/capira-0x/core-dotenv#readme","license":"MIT","engines":{"node":">=14.0.0"},"scripts":{"lint":"eslint --fix 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf lib","build":"tsc","build:docs":"typedoc --out docs src/env-var-base.ts","test":"jest --coverage","test:prod":"npm run lint && npm run test -- --no-cache"},"peerDependencies":{"dotenv":">= 8","env-var":">= 7"},"lint-staged":{"{src,test}/**/*.ts":["eslint --fix"]},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":90,"functions":95,"lines":95,"statements":95}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"semi":false,"singleQuote":true},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"17.0.1","@commitlint/config-conventional":"17.0.0","@types/jest":"27.5.1","@types/node":"^17.0.35","@typescript-eslint/eslint-plugin":"^5.26.0","@typescript-eslint/parser":"^5.26.0","dotenv":"16.0.1","env-var":"^7.1.1","eslint":"^8.16.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.1","jest":"28.1.0","jest-config":"28.1.0","lint-staged":"^12.4.2","prettier":"^2.6.2","rimraf":"^3.0.2","semantic-release":"^19.0.2","ts-jest":"^28.0.3","typedoc":"^0.22.15","typescript":"^4.7.2"},"_id":"core-dotenv@1.4.1","gitHead":"64affabaeb02a56b3075437563608ba96d34b1c1","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-bJ4vtCe6RpBjeyoFyfLGp5kJS3VuLa3bxfknb3Bgnj9WaJ69Brs+FxVPcsIxyqESNj7V6VT3f/w+sT6XcSpYwg==","shasum":"206a169e0cc8d013ca7dcdb6bfdaa379bfa2bf25","tarball":"https://registry.npmjs.org/core-dotenv/-/core-dotenv-1.4.1.tgz","fileCount":11,"unpackedSize":12007,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzM5bqGjN2RaTSr9fCUoiEAkLWwKO6bihxTQzdc+9BlwIgHgExDAvSOzvx4SPxhdAQncDVqgw4tFh3AfLs7DUcDO4="}]},"_npmUser":{"name":"capira322","email":"CapiraOliel3220@outlook.com"},"directories":{},"maintainers":[{"name":"capira322","email":"CapiraOliel3220@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core-dotenv_1.4.1_1783982108833_0.8772286381705805"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-13T22:35:08.787Z","1.4.1":"2026-07-13T22:35:08.968Z","modified":"2026-07-13T22:35:09.226Z"},"maintainers":[{"name":"capira322","email":"CapiraOliel3220@outlook.com"}],"description":"Base configuration that uses env-var and dotenv","homepage":"https://github.com/capira-0x/core-dotenv#readme","keywords":["config","env-var","dotenv","typescript"],"repository":{"type":"git","url":"git+https://github.com/capira-0x/core-dotenv.git"},"author":{"name":"CapiraOliel3220@outlook.com"},"bugs":{"url":"https://github.com/capira-0x/core-dotenv/issues"},"license":"MIT","readme":"# core-dotenv\n\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\nBase configuration class that uses\n[env-var](https://github.com/evanshortiss/env-var)\nand\n[dotenv](https://github.com/motdotla/dotenv)\n\nInstallation:\n\n```sh\nnpm i core-dotenv\n```\n\nUsage:\n\n```ts\nclass AppConfig extends BaseConfig {\n  port = this.get('PORT').default(3000).asPortNumber()\n}\nconst config = new AppConfig()\nconsole.log(config.port) // 3000\n```\n\nEnv names can also be typed like this:\n\n```ts\ntype Env = { PORT: string; HOST: string }\n\nclass AppConfig extends BaseConfig<keyof Env> {}\n```\n\nor directly:\n\n```ts\nclass AppConfig extends BaseConfig<'PORT' | 'HOST'> {}\n```\n\nBootstrapped with <https://github.com/LuisReinoso/typescript-library-starter>\n","readmeFilename":"README.md","_rev":"1-9bb1dafa485e33ef94c8d3483be53e4a"}