nuxt-dayjs-module
The best way for use Day.js easily in your Nuxt.js project.
Installation
$ yarn add nuxt-dayjs-module # or npm install
Usage
1. Register dayjs module to your Nuxt Application
// ... modules: 'nuxt-dayjs-module' // Optional dayjs: locales: 'en' 'ja' defaultLocale: 'en' // ...
2. Use $dayjs on Context, Vue instance
with Context
with Vue instance
Development
$ git clone https://github.com/potato4d/nuxt-dayjs-module.git$ cd nuxt-dayjs-module$ yarn
License
MIT @potato4d
Note
This project generated by create-nuxt-module
Contributors
Thanks goes to these wonderful people (emoji key):
Takuma HANATANI(@potato4d) 💻 🐛 📖 💡 💬 👀 |
This project follows the all-contributors specification. Contributions of any kind welcome!