UNPKG

vue-the-mask

Version:

Tiny (2KB) and dependency free mask input for Vue.js

24 lines (19 loc) 438 B
import tokens from './tokens' import mask from './directive' import TheMask from './component.vue' function install (Vue) { Vue.component(TheMask.name, TheMask) Vue.directive('mask', mask) } const version = proccess.env.VERSION export default install export { TheMask, mask, tokens, version } // Install by default if included from script tag if (typeof window !== 'undefined' && window.Vue) { window.Vue.use(install) }