{"_id":"@anolilab/prisma-schema-reader","_rev":"2-6e3423154d1faad5a667de0a951acd4c","name":"@anolilab/prisma-schema-reader","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@anolilab/prisma-schema-reader","version":"1.0.0","description":"---","keywords":["anolilab","prisma","reader","schema"],"homepage":"https://anolilab.com/nodejs/packages/anolilab/prisma-schema-reader","repository":{"type":"git","url":"git+https://github.com/anolilab/zod-prisma.git","directory":"packages/prisma-schema-reader"},"license":"MIT","author":{"name":"Daniel Bannert","email":"d.bannert@anolilab.de"},"sideEffects":false,"exports":{".":{"require":"./dist/anolilab-prisma-schema-reader.cjs.js","default":"./dist/anolilab-prisma-schema-reader.esm.js"}},"funding":[{"type":"github","url":"https://github.com/sponsors/prisis"},{"type":"consulting","url":"https://anolilab.com/support"}],"main":"dist/anolilab-prisma-schema-reader.cjs.js","module":"dist/anolilab-prisma-schema-reader.esm.js","types":"dist/anolilab-prisma-schema-reader.cjs.d.ts","devDependencies":{"typescript":"^4.4.3"},"engines":{"node":">=12"},"publishConfig":{"access":"public"},"preconstruct":{"entrypoints":["index.ts"]},"bugs":{"url":"https://github.com/anolilab/zod-prisma/issues"},"_id":"@anolilab/prisma-schema-reader@1.0.0","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-0PwlaiqzO0IUogYeMjVyRKLHJlal+MKOjiA2FpMSwtHfu+WhCSnvsN9/a62yvUGI6ep8iToMno1Ayei+XJsuCg==","shasum":"bf81c845ab251c1533bf58c0c7fa80521e0782fa","tarball":"https://registry.npmjs.org/@anolilab/prisma-schema-reader/-/prisma-schema-reader-1.0.0.tgz","fileCount":13,"unpackedSize":40004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxIIpCRA9TVsSAnZWagAA7vYP/i2rVOYHsMxyPZ9miacz\ny0aJY6RfjKjLEJSRwnS9yLmThsFlpP8vQXL7cc/VTdMTfGL+e13R1X9ZMKIi\n0aAtM++NRB7MfxzcYUpm79187VINxEM+gsXfTe58vcBsJmsMF4egTJOXZLAr\nlWFB6LATyguIOPXml2JRrkUnvUUCkkJtcDBaVC/Rnl6DaTcRBvFgqVxrl446\nNuG+eMc+2b2QbDNSTzsuG9wdjv9k7onLGF80SRozhuPq3/Ak/lDi72S0f+Cp\npZZN+r1FHViDhlxyZpaejiHmTyObcJrF2NZa7rtqtjhe3l4All7gfC4KcT2b\nu6slc8H0BBvjqYDq6Zno+/tjBum880sNpAWrx99rsjZ8Zot/ia42JSxPWAwq\npYCMH8UHw9U6gWzJ5zURodJLIHyUV02QFZSWuld+XJN3405gcOm3nPvrWypp\nlQADfZLoxHk8ODcmRc8NEEed6+rL+PEcx25UvO89uJEkJiMDnl40+SVxdtJb\nAP2/gIu6QUTEBJY9yl72Trnf5V4GDxr/NJg3IgN85ctofbt2naklgN/7YJmy\nwHTaGousRHOj++dVmthUwu8rFa3LopaVGXM05+RIYYTlyfh0LvOglzS1bTQr\n5mrmsSyvFOvlHCPmgOavq7jQfGqR9qkUlgsscmn2uiiUOMiAGaypRJXFlG9I\nA/Sd\r\n=byEF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+bX2q9ThNQgVU9YF3fdiMGN1lNQNcNvhKDYyzYxYQqQIgF0XxX2+ROVxkKHXEkXZCOP7skiBFIX6L4biNlo+vTOY="}]},"_npmUser":{"name":"prisis","email":"d.bannert@anolilab.de"},"directories":{},"maintainers":[{"name":"prisis","email":"d.bannert@anolilab.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prisma-schema-reader_1.0.0_1640268329226_0.6033625317934563"},"_hasShrinkwrap":false},"2.0.0":{"name":"@anolilab/prisma-schema-reader","version":"2.0.0","description":"A prisma.schema reader and schema to object transformation class.","keywords":["anolilab","prisma","reader","schema"],"homepage":"https://anolilab.com/nodejs/packages/anolilab/prisma-schema-reader","repository":{"type":"git","url":"git+https://github.com/anolilab/zod-prisma.git","directory":"packages/prisma-schema-reader"},"funding":[{"type":"github","url":"https://github.com/sponsors/prisis"},{"type":"consulting","url":"https://anolilab.com/support"}],"license":"MIT","author":{"name":"Daniel Bannert","email":"d.bannert@anolilab.de"},"sideEffects":false,"exports":{".":{"require":"./dist/anolilab-prisma-schema-reader.cjs.js","default":"./dist/anolilab-prisma-schema-reader.esm.js"}},"main":"dist/anolilab-prisma-schema-reader.cjs.js","module":"dist/anolilab-prisma-schema-reader.esm.js","types":"dist/anolilab-prisma-schema-reader.cjs.d.ts","devDependencies":{"typescript":"^4.5.5"},"engines":{"node":">=16"},"publishConfig":{"access":"public"},"preconstruct":{"entrypoints":["index.ts"]},"gitHead":"fac553c7dfab6e393b1f5e55dfc310da919a2ee7","bugs":{"url":"https://github.com/anolilab/zod-prisma/issues"},"_id":"@anolilab/prisma-schema-reader@2.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-+xaZCpj0tEiLYX1GUbn1XuSBYYzmjDOUisQaoBG4AKWqD7sbxlHL6MIQA+DNa/0yrgXaTtcOp5/3RwIoEldlXw==","shasum":"331fd7100cb508270f2a41aa7c580b932cd007aa","tarball":"https://registry.npmjs.org/@anolilab/prisma-schema-reader/-/prisma-schema-reader-2.0.0.tgz","fileCount":13,"unpackedSize":42606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHoXsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMSg/5AHi5jgvILp9yIU8ae5Kro6X9EocXyLfkCXle7TY2g6d2MRph\r\nlxdAs2UFwZBKUBBFcFQ1zZnZzzEsUlolK1jTv0QB5/S1U3r61Zufk7jnzSRD\r\nPAeQ/XyPhIGdHfsQCGYUYEETnoDXkO278a+DKCiy/7XHDPiPyYQ02AYxBSYq\r\nG/KyqhnO4cbVKkT08x7D2PgnyEtyb/d37pNVEJNKKxOodRlJxut1klM+vJDd\r\n9ZOcYeqFsCf9etqov6n1w2mOs3FMq2eBOu7a8pYM+uMif1P2d053Xu1xZpF5\r\nPkLMa1X1Q8fH6nlsitt7/U2aIt/1IwCrFGmeRmGi06TMFxNx1rOFve90wjbe\r\nd2CX1/dGZHf0h0MsrVqj8FkiuZJZOLGYZwGbHRuTufi1QeBCglB83BFH16v1\r\ncdC/E+CE+7fhM4SEEQZEQnvYMkkyU2aiB9yGISZc94axrRcyY6ZOZVOudG0g\r\n9jer1AnNsmLWjC/2L8tmHJDYIUkcsyheTg6itfvxJWof5jx/8Akca0kNpjSj\r\nboMml0uY+vbu/VeuOsrF/zjNmWNSLIGWQWpd1+ZfD7kUyuNXFjwTRcGFEVEu\r\nBCLKuTkRVdoMgFob6yrWJ9kWl1RUa6ts0GgSjgvOkvnAKUQOgWdUKnpt4jcw\r\nNxvAwUZ2iEmAArH/oQa3/jBWoTLfkY2w/+Q=\r\n=D8Ce\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWtMs0jhTuWIL1kd8DTeK8gkVEEcX7/g+jk9MYpS5nWAiEA7dG7vLept82JnhE9Pk9GIgh3VQkgNqyzWKD5Reb8G+c="}]},"_npmUser":{"name":"prisis","email":"d.bannert@anolilab.de"},"directories":{},"maintainers":[{"name":"prisis","email":"d.bannert@anolilab.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prisma-schema-reader_2.0.0_1646167532303_0.6655923813797151"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-23T14:05:29.189Z","1.0.0":"2021-12-23T14:05:29.416Z","modified":"2022-04-04T14:18:54.208Z","2.0.0":"2022-03-01T20:45:32.507Z"},"maintainers":[{"name":"prisis","email":"d.bannert@anolilab.de"}],"description":"A prisma.schema reader and schema to object transformation class.","homepage":"https://anolilab.com/nodejs/packages/anolilab/prisma-schema-reader","keywords":["anolilab","prisma","reader","schema"],"repository":{"type":"git","url":"git+https://github.com/anolilab/zod-prisma.git","directory":"packages/prisma-schema-reader"},"author":{"name":"Daniel Bannert","email":"d.bannert@anolilab.de"},"bugs":{"url":"https://github.com/anolilab/zod-prisma/issues"},"license":"MIT","readme":"# A prisma schema reader and object transformation\n\n---\n\n<div align=\"center\">\n    <p>\n        <sup>\n            Daniel Bannert's open source work is supported by the community on <a href=\"https://github.com/sponsors/prisis\">GitHub Sponsors</a>\n        </sup>\n    </p>\n</div>\n\n---\n\n# Installation\n\nUse npm or yarn to install\n\n```bash\n    npm install @anolilab/prisma-schema-reader --save\n```\n\nOr\n\n```bash\n    yarn add @anolilab/prisma-schema-reader\n```\n\n# Usage\n\n## Basic usage\n\n```typescript\nimport { SchemaToObjectTransformer } from \"@anolilab/prisma-schema-reader\";\n\nconst prismaSchemaPath = \"path to your prisma.schema\";\n\nconst transformer = new SchemaToObjectTransformer(prismaSchemaPath);\n\ntransformer.transform();\n```\n\nThe transformer will return a JSON object based on the prisma schema.\n\n```text\n{\n  \"enums\": [\n    {\n      \"fields\": [\n        \"ADMIN\",\n        \"USER\",\n      ],\n      \"name\": \"Role\",\n    },\n    ...\n  ],\n  \"models\": [\n    {\n      \"documentation\": \"\",\n      \"fields\": [\n        {\n          \"documentation\": \"\",\n          \"isId\": true,\n          \"kind\": \"scalar\",\n          \"list\": false,\n          \"map\": undefined,\n          \"name\": \"id\",\n          \"relationField\": false,\n          \"required\": true,\n          \"type\": \"Int\",\n          \"unique\": false,\n        },\n      ]\n    },\n    ...\n  ],\n}\n```\n\n## Versioning\n\nThis project uses [SemVer](https://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/anolilab/zod-prisma/tags).\n\n## Supported Node.js Versions\n\nLibraries in this ecosystem make a best effort to track\n[Node.js’ release schedule](https://nodejs.org/en/about/releases/). Here’s [a\npost on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).\n\nContributing\n------------\n\n<!-- textlint-disable no-dead-link -->\n\nIf you would like to help take a look at the [list of issues](https://github.com/anolilab/zod-prisma/issues) and check our [Contributing](./.github/CONTRIBUTING.md) guild.\n\n<!-- textlint-enable no-dead-link -->\n\n> **Note:** please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.\n\nCredits\n-------------\n\n- [Daniel Bannert](https://github.com/prisis)\n- [All Contributors](https://github.com/anolilab/zod-prisma/graphs/contributors)\n\nLicense\n-------------\n\nThe anolilab zod-prisma is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT)\n\n","readmeFilename":"README.md"}