{"id":22307704,"url":"https://github.com/redredgroup/prisma-enum-generator","last_synced_at":"2025-03-26T01:23:50.316Z","repository":{"id":37682397,"uuid":"506096418","full_name":"REDREDGROUP/prisma-enum-generator","owner":"REDREDGROUP","description":"simple prisma enum generator","archived":false,"fork":false,"pushed_at":"2022-06-24T08:49:17.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-30T22:48:14.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/REDREDGROUP.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-22T04:26:09.000Z","updated_at":"2023-10-14T12:52:45.000Z","dependencies_parsed_at":"2022-09-15T10:02:11.742Z","dependency_job_id":null,"html_url":"https://github.com/REDREDGROUP/prisma-enum-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REDREDGROUP%2Fprisma-enum-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REDREDGROUP%2Fprisma-enum-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REDREDGROUP%2Fprisma-enum-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/REDREDGROUP%2Fprisma-enum-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/REDREDGROUP","download_url":"https://codeload.github.com/REDREDGROUP/prisma-enum-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245569398,"owners_count":20636954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T20:11:18.844Z","updated_at":"2025-03-26T01:23:50.283Z","avatar_url":"https://github.com/REDREDGROUP.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# prisma enum value generator\n\nThis tool allows you to get the value of the enum table from prisma.\n\n\n## Installation\n\nInstall @redredgroup/prisma-enum-generator with npm OR yarn\n\n```bash\n  npm install -D @redredgroup/prisma-enum-generator\n  //or\n  yarn add -D @redredgroup/prisma-enum-generator\n```\n    \n    \n## Usage/Examples\n\nPlease add enum module as below.\n\n```prisma\ngenerator client {\n  provider = \"prisma-client-js\"\n}\n\ngenerator enum {\n  provider = \"node node_modules/@redredgroup/prisma-enum-generator\"\n  output = \"./generated\"\n}\n\ndatasource db {\n  provider = \"postgresql\"\n  url      = env(\"DATABASE_URL\")\n}\n```\n\n```bash\n//And \nnpx prisma db pull\n//Build\nnpx prisma generate\n```\n\nDone!\n## Environment Variables\n\nThe two options below are optional, but can be modified if the properties below and the table names used are different.\n\n`ENUM_PREFIX` enum table start prefix (Default: enum_*)\n\n`ENUM_TABLE_COLUMN` Value column for table enum (Default: value)\n\n`ENUM_FILE_NAME` File name to output | example NiceEnum Value -\u003e NiceEnum.ts (The .ts will be added automatically.) | (Default: enum.ts)\n\n## Warning\nv0.0.1 version only supports postgres SQL relational databases. Please note.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredredgroup%2Fprisma-enum-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredredgroup%2Fprisma-enum-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredredgroup%2Fprisma-enum-generator/lists"}