1.0.0 • Published 5 years ago
vue-dayjs-plugin v1.0.0
vue-dayjs
A small wrapper for integrating dayjs to Vuejs
Dayjs is a minimalist (Fast 2kB) JavaScript library for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.
Installation
npm install vue-dayjs-plugin
Usage
import VueDayjs from 'vue-dayjs-plugin'
Vue.use(VueDayjs)
Example
JS
this.$date('2018-08-08').format('DD/MM/YYYY');
HTML
<span> {{ $date('2018-08-08').format('DD/MM/YYYY') }} </span>
License
1.0.0
5 years ago
1.0.0-beta
5 years ago