{"_id":"is-zod","_rev":"3-46c5540d42060ffa11a9cbe95a55e7d7","name":"is-zod","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"is-zod","version":"1.0.0","keywords":["zod","type","typeguard","schema","is"],"author":{"name":"Connor White"},"license":"MIT","_id":"is-zod@1.0.0","maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.dev/github/is-zod","bugs":{"url":"https://github.com/bconnorwhite/is-zod/issues"},"dist":{"shasum":"1afb20384bde67dffdd14c79aedfd4260c90667f","tarball":"https://registry.npmjs.org/is-zod/-/is-zod-1.0.0.tgz","fileCount":7,"integrity":"sha512-4oD+C0gj1bQN7fhc4NNELdnIUSzpHQfQiwWjl3V42/J7JZMhRyzKzvbjl+EyWm5Khj+KfsNw9hhQDPLoZBWJIg==","signatures":[{"sig":"MEUCIQC3s3uxeHMyjJcaPzqbbOll4GVsgD3q0aumJuT9AtaEgAIgLF6pPGjxDA636g3O600jNoWV2gvElVPe6+J4zTJg5bQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4167,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1tUsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofgQ/+PlZ74W6kKEV/i5UApiMy23Q4fVtjo/dq1ei0WkNIoNWO8tdB\r\n95b939Zv/K1SpPBI/bOoCIvO9WGLlbhU4rGLXkohYop9y9VHTlp3ea5AQbRM\r\n567MirHgREZEjmaI22+r1ldwXAthHfOcPepVf7q8tb6K9I+D8Sn+zlh16bqv\r\nRQ8AtjblP4lTDYNlwhNrap/LoRSAgKY+BBwOWf7JEq4d2+vOditOFgskeezy\r\nVKkoYaDGzKVAld8i6icopT60TS6DGavvhD1YxlkHg5lBjIyc3WzkSLtmxqAp\r\ndA/rShizYHX8w5amX/aFNNUQiAnYE+zx8c52zw9+f6BPmzh4oZd4iDX8AMxM\r\nnge4ZtlktlHEl8/7l065XKuhoWuIbRofrWLGGEp1SGvxxmJpg4XpZ6sMuLHl\r\nvxc7qySggkR4UMAxmzRhtxx16OuoJxtiEXG0qgNGY4X1M2P05+UK3Z5V1pKF\r\nvBa/bvFTkt8IjlM7YQUcbEKTlIh00lZ2ONwXRtnmKCsi3DfJZsRwGXJhGXja\r\nqEevKucXhaVZPjlXHEtWRdZoYEcXmTlqn+lhqjZMS/+pvIx2/PNd5sP7qEt4\r\n2MJVx1rC75PD4MxkfvW/2NK22x036v5MKIkGDiukkqUcVtmkJx062RXOeGhp\r\nKTxUP1fAlcB5Hq97zBeKD5Z0wFzc3wOUfb0=\r\n=3azH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"@autosoft/jest-preset"},"main":".auto/build/index.js","type":"module","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"exports":"./.auto/build/index.js","private":false,"scripts":{"dev":"auto dev","lint":"auto lint","test":"auto test","build":"auto build","prepack":"yarn build","release":"auto release","typecheck":"auto typecheck"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"repository":{"url":"git+https://github.com/bconnorwhite/is-zod.git","type":"git"},"description":"Typeguard to check if a value matches a zod schema","directories":{},"dependencies":{"zod":"^3.20.2"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"_hasShrinkwrap":false,"devDependencies":{"autorepo":"^0.1.9"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_npmOperationalInternal":{"tmp":"tmp/is-zod_1.0.0_1675023659937_0.28779146573282177","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"is-zod","version":"2.0.0","keywords":["zod","type","typeguard","schema","is"],"author":{"url":"https://bconnorwhite.com","name":"Connor White","email":"oss@bconnorwhite.com"},"license":"MIT","_id":"is-zod@2.0.0","maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"homepage":"https://github.bconnorwhite.com/is-zod#readme","bugs":{"url":"https://github.com/bconnorwhite/is-zod/issues"},"dist":{"shasum":"3ff45f2b4a07bd0e3885e8a46f3ff75b7b71c7b3","tarball":"https://registry.npmjs.org/is-zod/-/is-zod-2.0.0.tgz","fileCount":6,"integrity":"sha512-7cKfSblQJVHJzzUBf4gGoQeU7MBtfW2vGVJij3oP7LfSDGcIqTjEQ1QiktaIffx5Bb3DkJb2yODSe4I+xKgUGg==","signatures":[{"sig":"MEUCIQDRl6QHnFe/97hr7JpD3NdFjDK3uw7izFrw/CaaTFJ/tAIgUJPEUYRx7m5498p+RKEOcHu6fOR+N+DP0h+6y6wDDMg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5841},"main":"./build/index.js","type":"module","types":"./build/index.d.ts","engines":{"bun":"^1.3.0","node":"^24.0.0 || ^26.0.0"},"exports":{".":"./build/index.js"},"private":false,"scripts":{"lint":"npm run lint:package && npm run lint:source","test":"vitest run --config ./vitest.config.mjs && bun test ./test/index.test.ts","build":"tsc --project ./tsconfig.json","prepack":"npm run build","release":"npm publish","typecheck":"npm run build && tsc --project ./test/tsconfig.json && tsc --project ./test-d/tsconfig.json && tsd","lint:source":"ESLINT_USE_FLAT_CONFIG=false eslint src test test-d --ext .ts","lint:package":"npmPkgJsonLint ."},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"repository":{"url":"git+https://github.com/bconnorwhite/is-zod.git","type":"git"},"_npmVersion":"11.6.0","description":"Typeguard to check if a value matches a zod schema","directories":{},"_nodeVersion":"24.9.0","dependencies":{"zod":"^3.20.2"},"eslintConfig":{"extends":"@bconnorwhite/eslint-config"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.0","eslint":"^9.39.4","vitest":"^3.2.4","playwright":"^1.58.2","typescript":"^5.9.3","@types/node":"^24.3.0","@vitest/browser":"^3.2.4","eslint-plugin-json":"^4.0.1","eslint-plugin-import":"^2.32.0","npm-package-json-lint":"^9.1.0","@bconnorwhite/tsconfig":"^1.0.0","@typescript-eslint/parser":"^8.56.1","@bconnorwhite/eslint-config":"^1.0.0","@typescript-eslint/eslint-plugin":"^8.56.1","npm-package-json-lint-config-bconnorwhite":"^1.0.0"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bconnorwhite/oss"},"_npmOperationalInternal":{"tmp":"tmp/is-zod_2.0.0_1773157206015_0.14736066621508126","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"is-zod","version":"2.0.1","description":"Typeguard to check if a value matches a zod schema","license":"MIT","private":false,"author":{"name":"Connor White","email":"oss@bconnorwhite.com","url":"https://bconnorwhite.com"},"homepage":"https://github.bconnorwhite.com/is-zod#readme","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/is-zod.git"},"bugs":{"url":"https://github.com/bconnorwhite/is-zod/issues"},"keywords":["zod","type","typeguard","schema","is"],"type":"module","main":"./build/index.js","exports":{".":"./build/index.js"},"types":"./build/index.d.ts","engines":{"bun":"^1.3.0","node":"^24.0.0 || ^26.0.0"},"scripts":{"build":"tsc --project ./tsconfig.json","lint":"npm run lint:package && npm run lint:source","lint:package":"npmPkgJsonLint .","lint:source":"ESLINT_USE_FLAT_CONFIG=false eslint src test test-d --ext .ts","prepack":"npm run build","release":"npm publish","test":"vitest run --config ./vitest.config.mjs && bun test ./test/index.test.ts","typecheck":"npm run build && tsc --project ./test/tsconfig.json && tsc --project ./test-d/tsconfig.json && tsd"},"dependencies":{"zod":"^3.20.2"},"devDependencies":{"@bconnorwhite/eslint-config":"^1.0.0","@bconnorwhite/tsconfig":"^1.0.0","@types/node":"^24.3.0","@typescript-eslint/eslint-plugin":"^8.56.1","@typescript-eslint/parser":"^8.56.1","@vitest/browser":"^3.2.4","eslint":"^9.39.4","eslint-plugin-import":"^2.32.0","eslint-plugin-json":"^4.0.1","npm-package-json-lint":"^9.1.0","npm-package-json-lint-config-bconnorwhite":"^1.0.0","playwright":"^1.58.2","tsd":"^0.31.0","typescript":"^5.9.3","vitest":"^3.2.4"},"eslintConfig":{"extends":"@bconnorwhite/eslint-config"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bconnorwhite/oss"},"_id":"is-zod@2.0.1","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-+f5BLc3/yyshxWwc3RLUKlFBoSHcieG3SEoBhI+cqAmgPhuNvWLCAba3utaB5eOlnO/U2gIsC7nnjS+lQnOzNg==","shasum":"ded0cae39d5146bd19ef2d3103c0f29398eff89f","tarball":"https://registry.npmjs.org/is-zod/-/is-zod-2.0.1.tgz","fileCount":6,"unpackedSize":5841,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICPtMAeuZPRuiUNhZ+hmw4K8YDs+yZW73LHooSOHqkM3AiA8F2yMM82ykEe13HyL4DqEyY8yqgABpQO+1yfJ0WtpgQ=="}]},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-zod_2.0.1_1773159028900_0.4259977652513347"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-29T20:20:59.936Z","modified":"2026-03-10T16:10:29.132Z","1.0.0":"2023-01-29T20:21:00.103Z","2.0.0":"2026-03-10T15:40:06.167Z","2.0.1":"2026-03-10T16:10:29.044Z"},"bugs":{"url":"https://github.com/bconnorwhite/is-zod/issues"},"author":{"name":"Connor White","email":"oss@bconnorwhite.com","url":"https://bconnorwhite.com"},"license":"MIT","homepage":"https://github.bconnorwhite.com/is-zod#readme","keywords":["zod","type","typeguard","schema","is"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/is-zod.git"},"description":"Typeguard to check if a value matches a zod schema","maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"readme":"<!--BEGIN HEADER-->\n<div id=\"top\" align=\"center\">\n  <h1>is-zod</h1>\n  <a href=\"https://npmjs.com/package/is-zod\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/is-zod.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/is-zod\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/is-zod.svg\">\n  </a>\n</div>\n\n<br />\n\n<blockquote align=\"center\">Typeguard to check if a value matches a zod schema.</blockquote>\n\n---\n<!--END HEADER-->\n\n<!-- BEGIN INSTALLATION -->\n## Installation\n\n<details open>\n  <summary>\n    <a href=\"https://www.npmjs.com/package/is-zod\">\n      <img src=\"https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white\" alt=\"NPM\" />\n    </a>\n  </summary>\n\n```sh\nnpm install is-zod\n```\n\n</details>\n\n<details>\n  <summary>\n    <a href=\"https://yarnpkg.com/package/is-zod\">\n      <img src=\"https://img.shields.io/badge/yarn-2C8EBB?logo=yarn&logoColor=white\" alt=\"Yarn\" />\n    </a>\n  </summary>\n\n```sh\nyarn add is-zod\n```\n\n</details>\n\n<details>\n  <summary>\n    <img src=\"https://img.shields.io/badge/pnpm-F69220?logo=pnpm&logoColor=white\" alt=\"PNPM\" />\n  </summary>\n\n```sh\npnpm add is-zod\n```\n\n</details>\n\n<details>\n  <summary>\n    <img src=\"https://img.shields.io/badge/bun-EE81C3?logo=bun&logoColor=white\" alt=\"Bun\" />\n  </summary>\n\n```sh\nbun add is-zod\n```\n\n</details>\n<!-- END INSTALLATION -->\n\n## Usage\n\n### Is\n\n```ts\nimport { z } from \"zod\";\nimport is from \"is-zod\";\n\nconst user = z.object({\n  name: z.string(),\n  age: z.number()\n});\n\nconst value = {\n  name: \"Bob\",\n  age: 42\n};\n\nif (is(value, user)) {\n  // value is typed as { name: string; age: number; }\n}\n```\n\n### Validate\n\n```ts\nimport { z } from \"zod\";\nimport { validate } from \"is-zod\";\n\nconst user = z.object({\n  name: z.string(),\n  age: z.number()\n});\n\nconst isUser = validate(user);\n\nconst value = {\n  name: \"Bob\",\n  age: 42\n};\n\nif (isUser(value)) {\n  // value is typed as { name: string; age: number; }\n}\n```\n\n<!--BEGIN FOOTER-->\n<h2 id=\"dependencies\">Dependencies<a href=\"https://www.npmjs.com/package/is-zod?activeTab=dependencies\"><img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/librariesio/release/npm/is-zod.svg\"></a></h2>\n\n- [zod](https://www.npmjs.com/package/zod): TypeScript-first schema declaration and validation library with static type inference\n\n<h2 id=\"license\">License <a href=\"https://opensource.org/licenses/MIT\"><img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/is-zod.svg\"></a></h2>\n\n[MIT](https://opensource.org/licenses/MIT) - _MIT License_\n<!--END FOOTER-->\n","readmeFilename":"README.md"}