UNPKG

env-sentinel

Version:

Zero-dependency tool that auto-validates .env files against schema.env, with optional fallback and secure warnings.

110 lines (109 loc) 2.63 kB
{ "name": "env-sentinel", "version": "1.4.0", "description": "Zero-dependency tool that auto-validates .env files against schema.env, with optional fallback and secure warnings.", "keywords": [ "env", "dotenv", "validator", "secure-env", "schema", "ci-cd", "nodejs" ], "author": "Serhii Malyshev", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/malyshev/env-sentinel.git" }, "bugs": { "url": "https://github.com/malyshev/env-sentinel/issues" }, "homepage": "https://github.com/malyshev/env-sentinel#readme", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "default": "./dist/index.js", "types": "./dist/index.d.ts" } }, "bin": { "env-sentinel": "./bin/cli.js" }, "scripts": { "watch": "tsc -p tsconfig.json -w", "build": "rimraf dist && tsc -p tsconfig.build.json --removeComments", "lint": "eslint \"{src,test}/**/*.ts\" --fix", "format": "prettier --write \"{src,test}/**/*.ts\"", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage", "test:perf": "jest --config jest.perf.config.js tests/performance", "benchmark": "node scripts/benchmark-cli.js", "benchmark:all": "npm run test:perf && npm run benchmark", "analyze": "node scripts/analyze-bundle.js", "perf": "npm run benchmark:all && npm run analyze" }, "engines": { "node": ">=18" }, "files": [ "dist", "bin", "README.md" ], "devDependencies": { "@eslint/js": "^9.31.0", "@types/jest": "^30.0.0", "@types/node": "^24.0.13", "eslint": "^9.31.0", "globals": "^16.3.0", "jest": "^30.0.4", "prettier": "3.6.2", "rimraf": "^6.0.1", "ts-jest": "^29.4.0", "tslib": "^2.8.1", "typescript": "^5.8.3", "typescript-eslint": "^8.36.0" }, "jest": { "preset": "ts-jest/presets/default-esm", "testEnvironment": "node", "transform": { "^.+\\.ts$": [ "ts-jest", { "useESM": true } ] }, "extensionsToTreatAsEsm": [ ".ts" ], "moduleNameMapper": { "^(\\.{1,2}/.*)\\.js$": "$1" }, "moduleFileExtensions": [ "js", "json", "ts" ], "testMatch": [ "<rootDir>/**/*.spec.ts", "tests/**/*.spec.ts" ], "testPathIgnorePatterns": [ "tests/performance" ], "collectCoverageFrom": [ "src/**/*.(t|j)s" ], "coveragePathIgnorePatterns": [ "/node_modules/" ], "coverageDirectory": "coverage" } }