{"id":21452513,"url":"https://github.com/destinio/make-types-rest","last_synced_at":"2026-05-21T04:04:43.474Z","repository":{"id":79444139,"uuid":"431658704","full_name":"destinio/make-types-rest","owner":"destinio","description":"Convert JSON end-point to TypeScript Interfaces in the command line 🚀","archived":false,"fork":false,"pushed_at":"2021-12-06T16:26:10.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T04:45:06.036Z","etag":null,"topics":["cli","conversion","json","type"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/make-types-rest","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/destinio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-24T23:46:09.000Z","updated_at":"2024-12-18T18:39:42.000Z","dependencies_parsed_at":"2023-03-12T08:12:14.594Z","dependency_job_id":null,"html_url":"https://github.com/destinio/make-types-rest","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"9824d2a0a186b3e69edca598116f6733445f9c0d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/destinio%2Fmake-types-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/destinio%2Fmake-types-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/destinio%2Fmake-types-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/destinio%2Fmake-types-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/destinio","download_url":"https://codeload.github.com/destinio/make-types-rest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685513,"owners_count":20330980,"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":["cli","conversion","json","type"],"created_at":"2024-11-23T04:29:50.470Z","updated_at":"2026-05-21T04:04:38.435Z","avatar_url":"https://github.com/destinio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MTR\n\n## Convert JSON end-point to TypeScript Interface\n\n`npx make-types-rest`\n\n```sh\n Usage\n    $ mtr --url \u003curlString\u003e\n    $ mtr --url \u003curlString\u003e --copy\n    $ mtr --url \u003curlString\u003e --root post\n\n  Options\n    --url, -u   Url to be converted to Types\n    --root, -r  Name of Interface default \"RootObject\"\n    --copy, -c  Copy output to clipboard\n\n  Examples\n    $ mtr -u https://jsonplaceholder.typicode.com/posts  --root post\n\n     interface Post {\n       userId: number;\n       id: number;\n       title: string;\n       body: string;\n     }\n```\n\n## Usage\n\n### Install\n\n`npm i -g make-types-rest`\n\n### Run in command line\n\n`make-types-rest -u https://jsonplaceholder.typicode.com/posts --root post`\n\nor\n\n`mtr -u https://jsonplaceholder.typicode.com/posts -r post -c`\n\n### Output\n\n```typescript\ninterface Post {\n  userId: number\n  id: number\n  title: string\n  body: string\n}\n```\n\n## Creds\n\njson-to-ts - https://www.npmjs.com/package/json-to-ts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdestinio%2Fmake-types-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdestinio%2Fmake-types-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdestinio%2Fmake-types-rest/lists"}