-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.ts
122 lines (119 loc) · 2.95 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import cpfIsValid from "./src/cpfValidator";
import cnpjIsValid from "./src/cnpjValidator";
import getOnlyEmail from "./src/getOnlyEmail";
import isCEP from "./src/isCEP";
import isEmail from "./src/isEmail";
import validateEmail from "./src/validateEmail";
import validatePassword from "./src/validatePassword";
import validateUsername from "./src/validateUsername";
import isCreditCardValid from "./src/isCreditCardValid";
import identifyFlagCard from "./src/identifyFlagCard";
import isMACAddress from "./src/isMACAddress";
import isAscii from "./src/isAscii";
import isBase64 from "./src/isBase64";
import isDate from "./src/isDate";
import isDecimal from "./src/isDecimal";
import isEmpty from "./src/isEmpty";
import isMD5 from "./src/isMD5";
import validatePassportNumber from "./src/validatePassportNumber";
import isPort from "./src/isPort";
import isPostalCode from "./src/isPostalCode";
import isTime from "./src/isTime";
import validateBRPhoneNumber from "./src/validateBRPhoneNumber";
import validateUSPhoneNumber from "./src/validateUSPhoneNumber";
import validatePhoneNumber from "./src/validatePhoneNumber";
import isNumber from "./src/isNumber";
import passwordStrengthTester from "./src/passwordStrengthTester";
import validateSurname from "./src/validateSurname";
import validateName from "./src/validateName";
import validateTextarea from "./src/validateTextarea";
import isValidImage from "./src/isValidImage";
import isValidAudio from "./src/isValidAudio";
import isValidPdf from "./src/isValidPdf";
import isValidVideo from "./src/isValidVideo";
import isValidTxt from "./src/isValidTxt";
import type { ValidateFunctions, IsValidFunctions } from "./src/types";
import type {
PasswordStrengthTesterOptions,
PasswordStrengthFunction,
PasswordStrengthType,
} from "./src/passwordStrengthTester";
export {
cpfIsValid,
cnpjIsValid,
isEmail,
validateEmail,
isCEP,
validateUsername,
validatePassword,
getOnlyEmail,
isCreditCardValid,
identifyFlagCard,
isMACAddress,
isAscii,
isBase64,
isDate,
isDecimal,
isEmpty,
isMD5,
isPort,
isPostalCode,
isTime,
validatePassportNumber,
validateBRPhoneNumber,
validateUSPhoneNumber,
validatePhoneNumber,
isNumber,
passwordStrengthTester,
validateName,
validateSurname,
validateTextarea,
isValidImage,
isValidAudio,
isValidPdf,
isValidVideo,
isValidTxt,
};
export default {
cpfIsValid,
cnpjIsValid,
isEmail,
validateEmail,
isCEP,
validateUsername,
validatePassword,
getOnlyEmail,
isCreditCardValid,
identifyFlagCard,
isMACAddress,
isAscii,
isBase64,
isDate,
isDecimal,
isEmpty,
isMD5,
isPort,
isPostalCode,
isTime,
validatePassportNumber,
validateBRPhoneNumber,
validateUSPhoneNumber,
validatePhoneNumber,
isNumber,
passwordStrengthTester,
validateName,
validateSurname,
validateTextarea,
isValidImage,
isValidAudio,
isValidPdf,
isValidVideo,
isValidTxt,
};
export type {
ValidateFunctions,
IsValidFunctions,
PasswordStrengthTesterOptions,
PasswordStrengthFunction,
PasswordStrengthType,
};