1.0.15 • Published 1 year ago

@nathanchase/nuxt-dayjs-module v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.
1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago