UNPKG

env-sentinel

Version:

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

100 lines (99 loc) 2.25 kB
{ "name": "env-sentinel", "version": "1.0.3", "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" }, "engines": { "node": ">=18" }, "files": [ "dist", "bin", "README.md" ], "devDependencies": { "@eslint/js": "^9.26.0", "@types/jest": "^29.5.14", "@types/node": "^22.15.16", "eslint": "^9.26.0", "globals": "^16.1.0", "jest": "^29.7.0", "prettier": "3.5.3", "rimraf": "^6.0.1", "ts-jest": "^29.3.2", "tslib": "^2.8.1", "typescript": "^5.8.3", "typescript-eslint": "^8.32.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" ], "rootDir": "src", "testRegex": ".*\\.spec\\.ts$", "collectCoverageFrom": [ "**/*.(t|j)s" ], "coveragePathIgnorePatterns": [ "/node_modules/" ], "coverageDirectory": "../coverage" } }