-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
20 lines (19 loc) · 877 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const fixerr = require('./src/index');
console.log(fixerr.min('foobaar', 3));
console.log(fixerr.max('foobaar', 6));
console.log(fixerr.isLength('foobaar',{min:0, max:7}));
console.log(fixerr.isWhiteSpace('foobaar'));
console.log(fixerr.isSpecialChar('foo@$ba%ar'));
console.log(fixerr.isAlphaNumeric('foobaar'));
console.log(fixerr.isMobile(1234567890));
console.log(fixerr.isEmail('[email protected]'));
console.log(fixerr.date('10/12/2017', { format: 'MM/DD/YYYY' }));
console.log(fixerr.isVowel('a'));
console.log(fixerr.isVideoUrl('https://www.youtube.com/watch?v=LyrqhruLhBA'));
console.log(fixerr.isMacAddress('FF:FF:FF:FF:FF:FF'));
console.log(fixerr.isLeapYear(2020));
console.log(fixerr.isIPaddress('192.168.0.1'));
console.log(fixerr.isVowel('asskdsdf'));
console.log(fixerr.isBoolean(true));
console.log(fixerr.isRoman('IV'));
console.log(fix.isEqual('25','25'));