Fast, Lightweight, Flexible Validator.
Only 7KB(min ver) with 100% test coverage, yet powerful and extendable
通过 npm
npm install --save validator-core
const Validator = require('validator-core')
const validator = new Validator()
// or
import Validator from 'validator-core'
const validator = new Validator()
使用标签方式加载
<script src="https://unpkg.com/validator-core"></script>
<script type="text/javascript">
const validator = new Validator()
validator.test('[email protected]', 'email') // => true
</script>
Thanks goes to these wonderful people (emoji key):
hwen 🤔 💻 🎨 📖 💡 |
---|
Copyright (c) 2017-present, hwen [email protected]