UNPKG

zod-schema-faker

Version:

Generates mock data from zod schema. Powered by @faker-js/faker and randexp.js

83 lines (82 loc) 2.19 kB
{ "name": "zod-schema-faker", "version": "2.1.1", "description": "Generates mock data from zod schema. Powered by @faker-js/faker and randexp.js", "keywords": [ "zod", "faker-js", "fake", "stub", "mock", "test", "json", "schema" ], "homepage": "https://github.com/soc221b/zod-schema-faker#readme", "bugs": { "url": "https://github.com/soc221b/zod-schema-faker/issues" }, "repository": { "type": "git", "url": "git+https://github.com/soc221b/zod-schema-faker.git" }, "license": "MIT", "author": "Ernest <soc221b.e@gmail.com>", "sideEffects": false, "type": "module", "exports": { ".": { "types": "./dist/zod-schema-faker.d.ts", "import": "./dist/zod-schema-faker.es.js", "require": "./dist/zod-schema-faker.cjs" }, "./v3": { "types": "./dist/v3/zod-schema-faker.d.ts", "import": "./dist/v3/zod-schema-faker.es.js", "require": "./dist/v3/zod-schema-faker.cjs" }, "./v4": { "types": "./dist/v4/zod-schema-faker.d.ts", "import": "./dist/v4/zod-schema-faker.es.js", "require": "./dist/v4/zod-schema-faker.cjs" } }, "main": "./dist/zod-schema-faker.cjs", "module": "./dist/zod-schema-faker.es.js", "types": "./dist/zod-schema-faker.d.ts", "files": [ "dist" ], "scripts": { "build": "tsc && vite build", "format": "prettier --write .", "pack": "rm -f *.tgz && npm pack && mv zod-schema-faker* zod-schema-faker.tgz", "test": "vitest run" }, "devDependencies": { "@faker-js/faker": "10.3.0", "@types/node": "24.12.0", "@vitest/coverage-v8": "4.0.18", "prettier": "3.8.1", "prettier-plugin-organize-imports": "4.3.0", "prettier-plugin-packagejson": "3.0.2", "prettier-plugin-sort-json": "4.2.0", "randexp": "0.5.3", "rimraf": "6.1.3", "ts-expect": "1.3.0", "ts-node": "10.9.2", "typescript": "5.9.3", "vite": "7.3.1", "vite-plugin-dts": "4.5.4", "vitest": "4.0.18", "zod": "4.1.12" }, "peerDependencies": { "@faker-js/faker": "^10.0.0", "randexp": "^0.5.3", "zod": "^3.25.0 || ^4.0.0" }, "engines": { "node": ">=20" } }