0.3.0 • Published 3 years ago
vuetom v0.3.0
Vuetom.js
- 💪 Immutable
- 🔥 Chainable
Getting Started
Installation
npm install vuetom --save
Using Vuetom.js & Plugins
Node.js
const { createVuetom, isVuetom } = require('vuetom')
const vt = createVuetom()
// use date plugin
const date = require('')
ES6 syntax
import { createVuetom } from 'vuetom'
import date from 'vuetom/esm/plugin/date'
Browser
<script src="vuetom.umd.js"></script>
<script>
var date_plugin = window.vt_plugin_date
XXX.use(date_plugin)
</script>
Plugin
A plugin is an independent module.
import date from 'vuetom/plugin/date'
vuetom.use(date)
// The usage is the same as that of dayjs
vuetom().date(new Date(), 'YYYY-MM-DD HH:mm:ss')
License
Vuetom.js is licensed under a MIT License.