{"id":16266199,"url":"https://github.com/m0ksem/unplugin-print-type","last_synced_at":"2026-02-07T23:33:44.202Z","repository":{"id":65594202,"uuid":"518995070","full_name":"m0ksem/unplugin-print-type","owner":"m0ksem","description":"Transform TS type to string","archived":false,"fork":false,"pushed_at":"2023-10-17T01:42:23.000Z","size":174,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T22:28:30.359Z","etag":null,"topics":["render-type","ts","types","types-to-string","typescript","unplugin","vite","webpack"],"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/m0ksem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-07-28T21:09:29.000Z","updated_at":"2023-12-28T23:02:45.000Z","dependencies_parsed_at":"2024-10-14T12:02:05.514Z","dependency_job_id":null,"html_url":"https://github.com/m0ksem/unplugin-print-type","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"d93cc83d059b692de75c7c7a612c083eda21811d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":"unplugin/unplugin-starter","purl":"pkg:github/m0ksem/unplugin-print-type","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ksem%2Funplugin-print-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ksem%2Funplugin-print-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ksem%2Funplugin-print-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ksem%2Funplugin-print-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0ksem","download_url":"https://codeload.github.com/m0ksem/unplugin-print-type/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ksem%2Funplugin-print-type/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29212659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T23:14:30.912Z","status":"ssl_error","status_checked_at":"2026-02-07T23:14:17.253Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["render-type","ts","types","types-to-string","typescript","unplugin","vite","webpack"],"created_at":"2024-10-10T17:40:17.430Z","updated_at":"2026-02-07T23:33:43.422Z","avatar_url":"https://github.com/m0ksem.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unplugin-print-type\n\nExperimental TS type printer. \n\nPrint TS type deeply handle all subtypes. Useful if you want to document types.\n\n## Features\n- Render type during build (Zero runtime-code)\n- Render type aliases and interfaces to string\n- Resolve imported types\n\n## Usage\n\n```ts\nimport type { UserRole } from './user'\n\ninterface User {\n  name: string\n  role: UserRole\n}\n\nconsole.log(`User type: ${PrintType\u003cUser\u003e()}`)\n```\n\nOutput\n```plain\nUser type: {\n  name: string\n  role: 'admin' | 'user'\n}\n```\n\n## Install\n\n```bash\nnpm i unplugin-print-type\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport Untype from 'unplugin-print-type/vite'\n\nexport default defineConfig({\n  plugins: [\n    Untype({ /* options */ }),\n  ],\n})\n```\n\nExample: [`playground/`](./playground/)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [\n    require('unplugin-print-type/webpack')({ /* options */ })\n  ]\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eNuxt\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// nuxt.config.js\nexport default {\n  buildModules: [\n    ['unplugin-print-type/nuxt', { /* options */ }],\n  ],\n}\n```\n\n\u003e This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eVue CLI\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vue.config.js\nmodule.exports = {\n  configureWebpack: {\n    plugins: [\n      require('unplugin-print-type/webpack')({ /* options */ }),\n    ],\n  },\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0ksem%2Funplugin-print-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0ksem%2Funplugin-print-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0ksem%2Funplugin-print-type/lists"}