{"id":13417349,"url":"https://github.com/Shinigami92/vite-plugin-ts-nameof","last_synced_at":"2025-03-15T02:31:09.862Z","repository":{"id":37028382,"uuid":"342691543","full_name":"Shinigami92/vite-plugin-ts-nameof","owner":"Shinigami92","description":"Give Vite the ability to resolve 'nameof' calls in TypeScript","archived":false,"fork":false,"pushed_at":"2025-03-14T06:50:20.000Z","size":1496,"stargazers_count":22,"open_issues_count":12,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T07:32:34.783Z","etag":null,"topics":["awesome","nameof","plugin","ts-nameof","typescript","vite","vite-plugin","vitejs"],"latest_commit_sha":null,"homepage":"","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/Shinigami92.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Shinigami92"],"custom":["https://www.paypal.com/donate?hosted_button_id=L7GY729FBKTZY"]}},"created_at":"2021-02-26T20:21:11.000Z","updated_at":"2024-12-20T05:10:28.000Z","dependencies_parsed_at":"2024-11-06T20:01:45.816Z","dependency_job_id":"62cb801f-9b44-490b-9f05-49a4822cfa9a","html_url":"https://github.com/Shinigami92/vite-plugin-ts-nameof","commit_stats":{"total_commits":96,"total_committers":4,"mean_commits":24.0,"dds":"0.36458333333333337","last_synced_commit":"128ea91f95bcb6d55e8135d9ad03aa33e3e51155"},"previous_names":["shinigami92/vite-ts-nameof"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinigami92%2Fvite-plugin-ts-nameof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinigami92%2Fvite-plugin-ts-nameof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinigami92%2Fvite-plugin-ts-nameof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shinigami92%2Fvite-plugin-ts-nameof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shinigami92","download_url":"https://codeload.github.com/Shinigami92/vite-plugin-ts-nameof/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544668,"owners_count":20308168,"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":["awesome","nameof","plugin","ts-nameof","typescript","vite","vite-plugin","vitejs"],"created_at":"2024-07-30T22:00:35.637Z","updated_at":"2025-03-15T02:31:09.588Z","avatar_url":"https://github.com/Shinigami92.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Shinigami92","https://www.paypal.com/donate?hosted_button_id=L7GY729FBKTZY"],"categories":["Plugins"],"sub_categories":["Framework-agnostic Plugins"],"readme":"\u003ch1 align=\"center\"\u003evite-plugin-ts-nameof\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Shinigami92/vite-plugin-ts-nameof/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"license: MIT\" src=\"https://img.shields.io/github/license/Shinigami92/vite-plugin-ts-nameof.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-ts-nameof\" target=\"_blank\"\u003e\n    \u003cimg alt=\"NPM package\" src=\"https://img.shields.io/npm/v/vite-plugin-ts-nameof.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-ts-nameof\" target=\"_blank\"\u003e\n    \u003cimg alt=\"downloads\" src=\"https://img.shields.io/npm/dt/vite-plugin-ts-nameof.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Code style: Prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/vitejs/awesome-vite#transformers\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg\" alt=\"Awesome\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/Shinigami92/vite-plugin-ts-nameof/actions/workflows/ci.yml\"\u003e\n    \u003cimg alt=\"Build Status\" src=\"https://github.com/Shinigami92/vite-plugin-ts-nameof/actions/workflows/ci.yml/badge.svg?branch=main\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Give \u003ca href=\"https://github.com/vitejs/vite\" target=\"_blank\"\u003eVite\u003c/a\u003e the ability to resolve \u003ca href=\"https://github.com/typescript-nameof/nameof\" target=\"_blank\"\u003enameof\u003c/a\u003e calls in TypeScript.\n\u003c/p\u003e\n\n## Usage\n\n1. Install as `devDependencies`\n\n   ```bash\n   npm add --save-dev vite-plugin-ts-nameof @typescript-nameof/types @typescript-nameof/common-types\n   # or\n   pnpm add --save-dev vite-plugin-ts-nameof @typescript-nameof/types @typescript-nameof/common-types\n   # or\n   yarn add --dev vite-plugin-ts-nameof @typescript-nameof/types @typescript-nameof/common-types\n   ```\n\n2. Inject `vite-plugin-ts-nameof` using the `vite.config.ts` module\n\n   ```ts\n   import vue from '@vitejs/plugin-vue';\n   import { defineConfig } from 'vite';\n   import tsNameof from 'vite-plugin-ts-nameof';\n\n   // https://vitejs.dev/config/\n   export default defineConfig({\n     plugins: [tsNameof(), vue()],\n   });\n   ```\n\n3. Add `@typescript-nameof/types/index.d.cts` to your `tsconfig.json`\n\n   ```jsonc\n   {\n     // \"compilerOptions\"\n     // \"include\"\n     // ...\n     \"files\": [\"./node_modules/@typescript-nameof/types/index.d.cts\"],\n   }\n   ```\n\n## More Awesome Vite Plugins\n\nCan be found here: [Awesome Vite.js](https://github.com/vitejs/awesome-vite#readme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShinigami92%2Fvite-plugin-ts-nameof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShinigami92%2Fvite-plugin-ts-nameof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShinigami92%2Fvite-plugin-ts-nameof/lists"}