vue-dayjs-plugin

1.0.0 • Public • Published

vue-dayjs

NPM Version size license

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

MIT

Dependents (1)

Package Sidebar

Install

npm i vue-dayjs-plugin

Weekly Downloads

239

Version

1.0.0

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • jucezt