@nathanchase/nuxt-dayjs-module
This is a Nuxt 3 compatible module built with the official Nuxt 3 (module-builder)(https://github.com/nuxt/module-builder) for (dayjs)(https://github.com/iamkun/dayjs/).
19,376
31
| Install | |
|---|---|
npm install @nathanchase/nuxt-dayjs-module |
|
| Latest Version: | 1.0.15 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | May 12, 2025 |
| Links: | GitHub · npm |
Maintainer: nathanchase
@nathanchase/nuxt-dayjs-module
This is a Nuxt 3 compatible module built with the official Nuxt 3 module-builder for dayjs. This is meant as a Nuxt 3 version of dayjs-module to satisfy Nuxt 3 support.
Usage:
// ./nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@nathanchase/nuxt-dayjs-module'
]
...
});
Add dayjs plugins (ex: duration) via configuration in nuxt.config like so:
dayjs: {
plugins: [
'duration',
'relativeTime',
'advancedFormat',
'weekday'
]
}
See /playground/app.vue for working examples.
On npm: https://www.npmjs.com/package/@nathanchase/nuxt-dayjs-module
Development
- Run 'npm install' to install required packages.
- Run
npm run dev:prepareto generate type stubs. - Use
npm run devto start playground in development mode.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 1.0.15 | MIT | |
| 1.0.14 | MIT | |
| 1.0.13 | MIT | |
| 1.0.12 | MIT | |
| 1.0.11 | MIT | |
| 1.0.10 | MIT | |
| 1.0.9 | MIT | |
| 1.0.8 | MIT | |
| 1.0.7 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |