0.0.10 • Published 10 months ago

@lauvz/nuxt-server-utils v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Nuxt Server Utils

🛠️ Nuxt Server Utils

npm version npm downloads License Nuxt Netlify Status

A collection of utility functions for Nuxt API development.

Features

  • Filtering
  • Sorting
  • Pagination
  • Selecting
  • Populating
  • Counting
  • Searching
  • Authority checker utility
  • Permission checker utility
  • Policy utility
  • Resource index utility
  • Resource show utility
  • Resource delete utility
  • Resource update utility
  • Zod schema validator

Quick Setup

  1. Add @lauvz/nuxt-server-utils dependency to your project
# Using pnpm
pnpm add -D @lauvz/nuxt-server-utils

# Using yarn
yarn add --dev @lauvz/nuxt-server-utils

# Using npm
npm install --save-dev @lauvz/nuxt-server-utils
  1. Add @lauvz/nuxt-server-utils to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@lauvz/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
0.0.10

10 months ago

0.0.8

10 months ago