Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sirwanafifi/vite-plugin-csv
Import CSV files in your vite projects
https://github.com/sirwanafifi/vite-plugin-csv
csv react vite vite-plugin vitejs vue
Last synced: about 1 month ago
JSON representation
Import CSV files in your vite projects
- Host: GitHub
- URL: https://github.com/sirwanafifi/vite-plugin-csv
- Owner: SirwanAfifi
- Created: 2021-07-31T09:05:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T12:05:07.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T14:42:08.546Z (about 1 month ago)
- Topics: csv, react, vite, vite-plugin, vitejs, vue
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vite-plugin-csv
CSV loader for Vite
## Install
Install
```bash
yarn add vite-plugin-csv -D
```Add it to `vite.config.js`
```ts
// vite.config.js
import CSV from "vite-plugin-csv";export default {
plugins: [CSV()],
};
```## Usage
- [React example](/examples/react)
- [Vue example](/examples/vue)## TypeScript Shim
```ts
declare module "*.csv" {
export default <{[key: string]: any}>[];
}
```