{"id":15617954,"url":"https://github.com/PengBoUESTC/vite-plugin-envtype-patch","last_synced_at":"2025-10-13T19:31:11.277Z","repository":{"id":254831050,"uuid":"847671902","full_name":"PengBoUESTC/vite-plugin-envtype-patch","owner":"PengBoUESTC","description":"gen dts for import.meta.env","archived":false,"fork":false,"pushed_at":"2024-09-09T06:49:46.000Z","size":135,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-22T20:21:29.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/PengBoUESTC.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-26T10:17:15.000Z","updated_at":"2024-09-09T06:49:49.000Z","dependencies_parsed_at":"2024-11-05T13:05:59.250Z","dependency_job_id":null,"html_url":"https://github.com/PengBoUESTC/vite-plugin-envtype-patch","commit_stats":null,"previous_names":["pengbouestc/vite-plugin-envtype-patch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PengBoUESTC%2Fvite-plugin-envtype-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PengBoUESTC%2Fvite-plugin-envtype-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PengBoUESTC%2Fvite-plugin-envtype-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PengBoUESTC%2Fvite-plugin-envtype-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PengBoUESTC","download_url":"https://codeload.github.com/PengBoUESTC/vite-plugin-envtype-patch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236390512,"owners_count":19141395,"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-03T08:00:53.089Z","updated_at":"2025-10-13T19:31:05.864Z","avatar_url":"https://github.com/PengBoUESTC.png","language":"HTML","readme":"# vite-plugin-envtype-patch\n\n## Basic\n\ngen dts file for import.meat.env;\n\nGet all env values in `configResolved` hook, **zero** dependency.\n\n```typescript\n/// \u003creference types=\"vite/client\" /\u003e \ninterface ImportMetaEnv  {\n  VITE_XXX: string\n  // and so on\n};\n\n```\n\n## How to use\n\n```typescript\nimport { envTypePatch } from 'vite-plugin-envtype-patch'\n\n{\n  plugins: [\n    envTypePatch({})\n  ]\n}\n```\n\n## What's more\n\n- convert simple type for `javascript` value\n```typescript\nimport { TypeConvert } from 'vite-plugin-envtype-patch'\n\nconst typeConvert = new TypeConvert({ once: false })\ntypeConvert.genSimpleType({\n  a: 100,\n})\n\n// call toString\nconst output = `${typeConvert}\n```","funding_links":[],"categories":["Recently Updated","Plugins"],"sub_categories":["[Oct 01, 2024](/content/2024/10/01/README.md)","Framework-agnostic Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPengBoUESTC%2Fvite-plugin-envtype-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPengBoUESTC%2Fvite-plugin-envtype-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPengBoUESTC%2Fvite-plugin-envtype-patch/lists"}