nuxt-server-utils
A collection of utility functions for Nuxt server.
2,492
21
| Install | |
|---|---|
npm install nuxt-server-utils |
|
| Latest Version: | 0.0.7 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Apr 17, 2024 |
| Links: | GitHub · npm |
Maintainer: jahidanowar
🛠️ Nuxt Server Utils
A collection of utility functions for Nuxt API development.
Features
Filtering Collections (Mongoose)
- Filtering
- Sorting
- Pagination
- Selecting
- Populating
- Counting
- Searching
Authorization
- Authority checker utility
- Permission checker utility
- Policy utility
Resource Helper
- Resource index utility
- Resource show utility
- Resource delete utility
- Resource update utility
Validation
- Zod schema validator
Quick Setup
- Add
nuxt-server-utilsdependency to your project
# Using pnpm
pnpm add -D nuxt-server-utils
# Using yarn
yarn add --dev nuxt-server-utils
# Using npm
npm install --save-dev nuxt-server-utils
- Add
nuxt-server-utilsto themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: ["nuxt-server-utils"],
});
That's it! You can now use Nuxt Server Utils in your Nuxt app ✨
Development
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.7 | ^3.0 | MIT | |
| 0.0.6 | ^3.0 | MIT | |
| 0.0.5 | ^3.0 | MIT | |
| 0.0.4 | ^3.0 | MIT | |
| 0.0.3 | ^3.0 | MIT | |
| 0.0.2 | ^3.0 | MIT | |
| 0.0.1 | ^3.0 | MIT |
