0.0.2 • Published 6 years ago

ninja-regex v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Quick start

Install

npm install ninja-regex -S

Use

import { njCn } from 'ninja-regex'
njCn('紫罗兰') // => true

Use in Vue

<template>
  <div>
    <input type="text" v-model="inputVal"/>
    <div v-if="njCn(inputVal)" v-text="inputVal"></div>
  </div>
</template>

<script>
import { njCn } from 'ninja-regex'

export default {
  data () {
    return {
      njCn,
      inputVal: ''
    }
  }
}
</script>