{"id":21401427,"url":"https://github.com/spoonx/wetland-generator-entity","last_synced_at":"2025-07-13T21:31:46.918Z","repository":{"id":143928761,"uuid":"87402272","full_name":"SpoonX/wetland-generator-entity","owner":"SpoonX","description":"A wetland generator for wetland entities.","archived":false,"fork":false,"pushed_at":"2018-09-12T19:17:43.000Z","size":18,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T16:05:24.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SpoonX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-06T07:56:10.000Z","updated_at":"2018-09-12T19:17:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"889a1444-e0dc-466e-859d-f1297f8a0132","html_url":"https://github.com/SpoonX/wetland-generator-entity","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fwetland-generator-entity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fwetland-generator-entity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fwetland-generator-entity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fwetland-generator-entity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpoonX","download_url":"https://codeload.github.com/SpoonX/wetland-generator-entity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225919509,"owners_count":17545273,"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-11-22T15:27:43.274Z","updated_at":"2024-11-22T15:27:43.855Z","avatar_url":"https://github.com/SpoonX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Board wetland entity\n\nA [boards](https://github.com/SpoonX/boards) generator for [wetland](https://wetland.spoonx.org) entities.\nSupports typescript and javascript.\n\n## Installation\n\nInstall local to enable the generator in the project:\n\n`npm i -D wetland-generator-entity`\n\n## Usage\n\nWetland generators automatically register themselves with the [wetland-cli](https://github.com/SpoonX/wetland-cli).\n\n`wetland generator entity \u003cname\u003e [flags]`\n\n### Options\n\nThe following options / flags can be passed in to the generator.\n\n| option | description |\n| :------------- | :------------- |\n| -l, --language \u003clanguage\u003e | One of \"ts\" or \"js\" for the target language (defaults to js) |\n| -e, --extend | Set to extend wetland.Entity for .toObject (defaults to false) |\n| -f, --fields \u003cfields\u003e | Fields to add. E.g. `-f username:string,password:string` |\n| -i, --interactive | Use interactive mode to design the entity |\n\n### Generate\n\nFields can be passed in using JSON, or the [ezon](https://github.com/SpoonX/ezon) format.\n\n`wetland generator entity user -l ts -f 'username,password:(size:50),active:boolean'`\n\nor\n\n`wetland generator entity user -l ts -f 'username:string,password:field(size:50),active:field(type:boolean)'`\n\n### Interactive\n\nThis generator also offers an interactive mode. Simply pass in the `-i` or `--interactive` flag.\n\n`wetland generator entity user -i`\n\n## Missing\n\nAt the moment you can't generate:\n\n- indexes\n- uniques\n- relations\n\nThese will be added in future versions\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoonx%2Fwetland-generator-entity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoonx%2Fwetland-generator-entity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoonx%2Fwetland-generator-entity/lists"}