UNPKG

schema-env

Version:

Type-safe environment variable validation for Node.js using Zod schemas or custom adapters. Load .env files, expand variables, fetch async secrets, and validate process.env at startup.

113 lines (112 loc) 2.79 kB
{ "name": "schema-env", "type": "module", "version": "2.1.6", "description": "Type-safe environment variable validation for Node.js using Zod schemas or custom adapters. Load .env files, expand variables, fetch async secrets, and validate process.env at startup.", "keywords": [ "env", "environment", "variables", "config", "configuration", "settings", "validate", "validation", "schema", "typescript", "type-safe", "zod", "joi", "yup", "adapter", "extensible", "dotenv", "dotenv-expand", "node", "nodejs", "startup", "process.env", "security", "secure", "secrets", "secrets-management", "async", "asynchronous", "ai", "ai-assisted", "ai-developed", "ai-enhanced", "llm", "gpt", "ai-collaborator", "automated-development" ], "author": "devvictrix <dev.victrix@gmail.com> (AI Assisted)", "license": "MIT", "homepage": "https://github.com/devvictrix/schema-env#readme", "repository": { "type": "git", "url": "git+https://github.com/devvictrix/schema-env.git" }, "bugs": { "url": "https://github.com/devvictrix/schema-env/issues" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } }, "files": [ "dist", "README.md", "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { "test": "NODE_OPTIONS='--experimental-vm-modules' jest", "test:coverage": "npm test -- --coverage", "build": "tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "format:check": "prettier --check .", "format": "prettier --write .", "typecheck": "tsc --noEmit", "validate": "npm run format:check && npm run lint && npm run typecheck && npm test", "prepublishOnly": "npm run validate && npm run build" }, "dependencies": { "dotenv": "^16.5.0", "dotenv-expand": "^12.0.2" }, "peerDependencies": { "zod": "^3.0.0" }, "devDependencies": { "@jest/globals": "^29.7.0", "@types/jest": "^29.5.14", "@types/node": "^22.15.0", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "jest": "^29.7.0", "prettier": "^3.3.3", "ts-jest": "^29.3.2", "tsup": "^8.2.3", "typescript": "^5.8.3", "zod": "^3.24.3" } }