An open API service indexing awesome lists of open source software.

https://github.com/louisxie0830/verify-tool


https://github.com/louisxie0830/verify-tool

javascript singleton-pattern verify

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# verify-tool


```
import Verify from 'Verify'
const valid = new Verify();

valid.data('1234').isRequired('Please specify required fields')
if(!valid.pass) {
console.log(valid.errorMessage);
}

or

import Verify from 'Verify'
const valid = new Verify('1234');
valid.isRequired('Please specify required fields');

if(!valid.pass) {
console.log(valid.errorMessage);
}
```