# vite-plugin-nameof-ts5

> Give Vite the ability to resolve 'nameof' calls in TypeScript

Latest version **0.0.9** (published 2024-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install vite-plugin-nameof-ts5
pnpm add vite-plugin-nameof-ts5
yarn add vite-plugin-nameof-ts5
bun add vite-plugin-nameof-ts5
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2024-01-29 |
| First published | 2024-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ikoofi |
| Keywords | vite, vite-plugin, ts5-nameof, nameof, plugin, typescript, vitejs, awesome |

## Links

- npm: https://www.npmjs.com/package/vite-plugin-nameof-ts5
- npm.io page: https://npm.io/package/vite-plugin-nameof-ts5

## Dependencies (1)

- [nameof-ts5](https://npm.io/package/nameof-ts5.md) ^0.1.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2024-01-29
- 0.0.8 — 2024-01-29
- 0.0.7 — 2024-01-29
- 0.0.6 — 2024-01-29
- 0.0.5 — 2024-01-29
- 0.0.4 — 2024-01-29
- 0.0.3 — 2024-01-29
- 0.0.2 — 2024-01-29
- 0.0.1 — 2024-01-29

## README

<h1 align="center">vite-plugin-ts5-nameof</h1>


## Usage

1. Install as `devDependencies`

   ```bash
   npm add --save-dev vite-plugin-ts5-nameof
   # or
   yarn add --dev vite-plugin-ts5-nameof
   # or
   pnpm add --save-dev vite-plugin-ts5-nameof
   ```

2. Inject `vite-plugin-ts5-nameof` using the `vite.config.ts` module

   ```ts
   import vue from '@vitejs/plugin-vue';
   import { defineConfig } from 'vite';
   import tsNameof from 'vite-plugin-ts5-nameof';

   // https://vitejs.dev/config/
   export default defineConfig({
     plugins: [tsNameof(), vue()],
   });
   ```

3. Add `ts5-nameof.d.ts` to your `tsconfig.json`

   ```jsonc
   {
     // "compilerOptions"
     // "include"
     // ...
     "files": ["./node_modules/ts5-nameof/ts5-nameof.d.ts"]
   }
   ```

## More Awesome Vite Plugins

Can be found here: [Awesome Vite.js](https://github.com/vitejs/awesome-vite#readme)

---
_Source: https://npm.io/package/vite-plugin-nameof-ts5 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
