{"id":17347253,"url":"https://github.com/rodentman87/mtgjson-types","last_synced_at":"2025-03-27T11:19:47.560Z","repository":{"id":120399202,"uuid":"529690846","full_name":"Rodentman87/mtgjson-types","owner":"Rodentman87","description":"This package provides types for the various files provided by MTGJSON","archived":false,"fork":false,"pushed_at":"2022-08-27T20:48:34.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T15:45:02.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Rodentman87.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":"2022-08-27T20:32:21.000Z","updated_at":"2022-08-27T20:37:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5c54c53-a195-4c29-9eae-d922e0491cdc","html_url":"https://github.com/Rodentman87/mtgjson-types","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/Rodentman87%2Fmtgjson-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodentman87%2Fmtgjson-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodentman87%2Fmtgjson-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodentman87%2Fmtgjson-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rodentman87","download_url":"https://codeload.github.com/Rodentman87/mtgjson-types/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832746,"owners_count":20679702,"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-10-15T16:48:08.308Z","updated_at":"2025-03-27T11:19:47.546Z","avatar_url":"https://github.com/Rodentman87.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mtgjson-types\n\nThis repository holds TypeScript types for all the data available in the [mtgjson](https://mtgjson.com) project.\n\nAll the types for the available files are exported with the `File` suffix. Simply parse the JSON from the file as cast it with `as \u003c...\u003eFile` to get type completions. For example:\n\n```typescript\nimport { readFile } from \"fs/promises\";\nimport { join } from \"path\";\nimport { AllPrintingsFile } from \"mtgjson-types\";\n\nconst raw = await readFile(join(__dirname, \"./AllPrintings.json\"), \"utf-8\");\nconst json = JSON.parse(raw) as AllPrintingsFile;\n```\n\n## Installing\n\nFor now you'll need to clone the repository from GitHub, then build and install it yourself locally.\n\n```bash\n# clone the code\ngit clone https://github.com/Rodentman87/mtgjson-types.git\n\n# move into the directory\ncd mtgjson-types\n\n# install dependencies\nyarn install\n\n# build the code\nyarn run build\n```\n\nThen use something like [yarn link](https://classic.yarnpkg.com/en/docs/cli/link) or [yalc](https://github.com/wclr/yalc) to install it locally.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodentman87%2Fmtgjson-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodentman87%2Fmtgjson-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodentman87%2Fmtgjson-types/lists"}