/v-rut

Vue Rut Directive

Primary LanguageJavaScript

v-rut

Vue Rut Directive

Formats Chilean DNI with dots and dash

Installation

npm i --save v-rut

Configuration

import vRut from 'v-rut';
Vue.use(vRut)

Use

<input type="text" v-model="rut" v-rut>