UNPKG

zod-subset-parser

Version:

Safely parse Zod schema definitions from strings without using eval.

62 lines (61 loc) 1.41 kB
{ "name": "zod-subset-parser", "version": "0.3.0", "description": "Safely parse Zod schema definitions from strings without using eval.", "exports": { "./zod3": { "import": "./dist/zod3/index.mjs", "require": "./dist/zod3/index.js" }, "./zod4": { "import": "./dist/zod4/index.mjs", "require": "./dist/zod4/index.js" } }, "main": "./dist/zod4/index.js", "module": "./dist/zod4/index.mjs", "types": "./dist/zod4/index.d.ts", "files": [ "dist" ], "scripts": { "build": "tsup --config tsup.config.ts", "dev": "tsup --config tsup.config.ts --watch", "test": "vitest", "test:ui": "vitest --ui", "test:coverage": "vitest run --coverage" }, "keywords": [ "zod", "parser", "schema", "ast", "safe", "eval-free" ], "author": "COCPORN", "license": "ISC", "packageManager": "pnpm@10.12.4", "dependencies": { "acorn": "^8.15.0" }, "peerDependencies": { "zod": ">=3.0.0" }, "repository": { "type": "git", "url": "https://github.com/COCPORN/zod-subset-parser.git" }, "devDependencies": { "@types/acorn": "^6.0.4", "@types/node": "^24.0.13", "@vitest/coverage-c8": "^0.33.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "tsup": "^8.5.0", "typescript": "^5.8.3", "vitest": "^3.2.4", "zod": "^4.0.5", "zod3": "npm:zod@3" } }