vite-plugin-api-routes
Version:
A Vite.js plugin that creates API routes by mapping the directory structure, similar to Next.js API Routes. This plugin enhances the functionality for backend development using Vite.
81 lines (80 loc) • 1.88 kB
JSON
{
"name": "vite-plugin-api-routes",
"version": "1.2.5-beta",
"type": "module",
"description": "A Vite.js plugin that creates API routes by mapping the directory structure, similar to Next.js API Routes. This plugin enhances the functionality for backend development using Vite.",
"keywords": [
"vite",
"api",
"api-router",
"api-routers",
"vite-plugin-api",
"vite-plugin-rest-api",
"express",
"express-router",
"server",
"file-system-based",
"routing",
"rest-api",
"api-rest",
"plugin",
"API",
"routes",
"backend",
"Remix",
"Next.js"
],
"files": [
"dist",
".api",
"client.d.ts",
"LICENSE"
],
"license": "MIT",
"author": "Willyams Yujra <yracnet@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/yracnet/vite-plugin-api-routes"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./configure": {
"types": "./.api/configure.d.ts"
},
"./handler": {
"types": "./.api/handler.d.ts"
},
"./routers": {
"types": "./.api/routers.d.ts"
}
},
"homepage": "https://github.com/yracnet/vite-plugin-api-routes",
"bugs": "https://github.com/yracnet/vite-plugin-api-routes/issues",
"scripts": {
"build": "tsup",
"prepublish": "yarn build",
"prepack": "yarn build"
},
"dependencies": {
"dotenv-local": "^1.0.2",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"slash-path": "^0.0.2",
"vite-plugin-builder": "^1.0.0"
},
"peerDependencies": {
"vite": "^3 || ^4 || ^5 || ^6 || ^7"
},
"devDependencies": {
"@types/express": "^5.0.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.2",
"express": "^4.21.2",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vite": "^6.2.0"
}
}