v-unicode
v0.0.5
Published
[![Codeship Status](https://img.shields.io/codeship/6ee406b0-ab21-0135-227f-46ac882f0537/master.svg)](https://app.codeship.com/projects/256658) [![Coverage Status](https://coveralls.io/repos/github/ndelvalle/v-unicode/badge.svg?branch=master)](https://cov
Downloads
41
Readme
v-unicode
Vue directive to restrict an input by unicode values. It allows the input to be used just with the defined unicodes.
Install
$ npm install --save v-unicode
$ yarn add v-unicode
Use
import Vue from 'vue'
import vUnicode from 'v-unicode'
Vue.use(vUnicode)
<template>
<input type="text" v-unicode="{ from: 48, to: 57 }">
<input type="text" v-unicode="[48, 49, 50, 51, 52, 53, 54, 55, 56, 57]">
</template>