verdict-rules
Version:
A small, zero-dependency, async-native rule-evaluation engine. Compose conditions into one explainable pass/fail verdict, with sequential evaluation and real short-circuiting as a guarantee.
65 lines (64 loc) • 1.97 kB
JSON
{
"name": "verdict-rules",
"version": "0.3.1",
"description": "A small, zero-dependency, async-native rule-evaluation engine. Compose conditions into one explainable pass/fail verdict, with sequential evaluation and real short-circuiting as a guarantee.",
"keywords": [
"rules-engine",
"rule-evaluation",
"eligibility",
"decision",
"decision-engine",
"async"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/pawan-vyas/verdict-rules.git",
"directory": "js/packages/verdict-rules"
},
"bugs": "https://github.com/pawan-vyas/verdict-rules/issues",
"homepage": "https://github.com/pawan-vyas/verdict-rules#readme",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"engines": {
"node": ">=18"
},
"scripts": {
"build": "npm run build:types && npm run build:bundles",
"build:types": "tsc -p tsconfig.build.json",
"build:bundles": "node scripts/build.mjs",
"test": "node --test test/*.test.js",
"test:coverage": "node --test --experimental-test-coverage test/*.test.js",
"typecheck": "tsc --noEmit && tsc -p tsconfig.scripts.json",
"prepublishOnly": "npm run build",
"sri": "node scripts/sri.mjs",
"sri:json": "node scripts/sri.mjs --json",
"sri:verify": "node scripts/sri.mjs --verify"
},
"devDependencies": {
"typescript": "^5.6.0",
"@types/node": "^22.0.0",
"esbuild": "^0.24.0"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"unpkg": "./dist/verdict-rules.global.js",
"jsdelivr": "./dist/verdict-rules.global.js",
"browser": "./dist/verdict-rules.global.js",
"sideEffects": false
}