Installation an Usage
install
npm install validator-core
usage
const Validator = require('validator-core')
const validator = new Validator()
// or
import Validator from 'validator-core'
const validator = new Validator()
loaded as a standalone script
<script src="https://unpkg.com/validator-core"></script>
<script type="text/javascript">
const validator = new Validator()
validator.test('hwenleung@gmail.com', 'email') // => true
</script>