nuxt-ssr-api-logger
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Nuxt SSR API logger

npm version npm downloads License Nuxt

The Nuxt SSR API logger is a small module that helps you see when your Nuxt application sends any API request via SSR, including calls made with Nuxt 3 data fetching functions like useFetch, $fetch and fetch.

Features

  • 👁️ By default, log information is only shown in the terminal during development mode.
  • 🦾 Use forceShowInProduction module option, if you want to show SSR calls in production environment.
  • 🚫 Use disable module option, if you want to disable logging.

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add nuxt-ssr-api-logger

That's it! You can now use Nuxt SSR API logger in your Nuxt app ✨

Contribution

Local 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

Readme

Keywords

Package Sidebar

Install

npm i nuxt-ssr-api-logger

Weekly Downloads

11

Version

1.4.0

License

MIT

Unpacked Size

7.28 kB

Total Files

12

Last publish

Collaborators

  • buglavecz