https://github.com/louisxie0830/verify-tool
https://github.com/louisxie0830/verify-tool
javascript singleton-pattern verify
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/louisxie0830/verify-tool
- Owner: louisxie0830
- Created: 2019-05-23T06:55:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T08:09:12.000Z (about 7 years ago)
- Last Synced: 2025-05-30T11:53:56.046Z (about 1 year ago)
- Topics: javascript, singleton-pattern, verify
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
}
```