More Premium Hugo Themes Premium Nuxt Themes

Dayjs

Nuxt V3 module for Day.js

Dayjs

Nuxt V3 module for Day.js

Author Avatar Theme by fumeapp
Github Stars Github Stars: 125
Last Commit Last Commit: Mar 11, 2025 -
First Commit Created: Dec 18, 2023 -
Dayjs screenshot

Overview:

The Nuxt Day.js module is a fast and lightweight alternative to Moment.js that offers the same modern API but with a smaller file size of only 2kB. It is a Nuxt module that supports version 3 of Nuxt.js.

Features:

  • Nuxt 3 Ready: The Nuxt Day.js module is compatible with Nuxt 3.
  • Activate any plugin or locale available: Users have the option to activate any plugin or locale that is available.
  • Specify default locales and timezones: The module allows users to specify default locales and timezones.

Installation:

To install the Nuxt Day.js module, you need to follow these steps:

  1. Add the dayjs-nuxt dependency to your project.
  2. Add dayjs-nuxt to the modules section of your nuxt.config.ts file.

Here is an example of how to add the module to your project’s nuxt.config.ts:

export default {
  modules: [
    'dayjs-nuxt'
  ]
}

Summary:

The Nuxt Day.js module is a powerful and lightweight alternative to Moment.js that offers the same modern API. It is compatible with Nuxt 3 and allows users to activate any plugin or locale. Additionally, users can specify default locales and timezones. The installation process is simple and straightforward, making it easy to integrate into any Nuxt project.