-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
77 lines (73 loc) · 2.92 KB
/
index.js
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
/**
* @fileoverview Entry point for Cerberus.
* @author Jithin Zacharia
*/
var isEmail = require("./fns/isEmail");
var isDate = require("./fns/isDate");
var emailNormalizer = require("./fns/emailNormalizer");
var creditCard = require("./fns/isCreditCard");
var cvvNumber = require("./fns/isCVVNumber");
var JWTValidator = require("./fns/isJWTValid");
var mongoValidator = require("./fns/isMongoId");
var phoneNumberValidator = require("./fns/isPhoneNumber");
var postalCodeValidator = require("./fns/isPostalCode");
var jsonValidator = require("./fns/isStringJSON");
var bankCode = require("./fns/ifscCode");
var luhnCheck = require("./lib/luhnCheck");
var PANCardValidator = require("./fns/isPANCard");
var unique = require("./fns/unique");
var validateEtherHash = require('./fns/isEthereumHash');
var isValidPort = require('./fns/isValidPort');
var isUUID = require('./fns/isUUID');
var isIPAddress = require('./fns/isIPAddress');
var isDivisible = require('./fns/isDivisible');
var isBase64 = require('./fns/isBase64');
var isBase32 = require('./fns/isBase32');
var isAscii = require('./fns/isAscii');
var isMACAddress = require('./fns/isMACAddress');
var colorValidator = require('./fns/colorValidator');
var isVehiclePlateValid = require('./fns/isVehicleNumber');
var isIMEINumber = require('./fns/isIMEINumber');
var isMagnetURI = require('./fns/isMagnetURI');
var isOctal = require('./fns/isOctal');
var isMD5 = require('./fns/isMD5');
const VERSION = "0.11.0";
const AUTHOR = "Jithin Zacharia";
const cerebreus={
isEmailValid: isEmail.isEmailValid,
getCardProvider: creditCard.detectCardType,
isCardValid: creditCard.isCreditCardNumber,
isCVVValid: cvvNumber.CVVValidator,
isJWTValid: JWTValidator.isJWT,
isDate: isDate.isDate,
luhnCheck: luhnCheck.luhnCheck,
panCardValidator: PANCardValidator.isPanCard,
getUnique: unique.unique,
isMongoId: mongoValidator.isMongoId,
isPhoneNumberValid: phoneNumberValidator.isPhoneNumber,
isPostalCodeValid: postalCodeValidator.isPostalCodeValid,
isStringJSON: jsonValidator.isStringJSON,
getUserEmailUserName: emailNormalizer.getUsername,
normalizeEmail: emailNormalizer.normalizeEmail,
isEthereumHash: validateEtherHash.isEthereumHash,
isIFSCValid: bankCode.isIFSCode,
isValidPort: isValidPort.isValidPort,
getBankCode: bankCode.getBankCode,
getBranchCode: bankCode.getBranchCode,
isUUID: isUUID.isUUID,
isIMEINumber: isIMEINumber.isIMEINumber,
isIPAddress: isIPAddress.isIPAddress,
isDivisible: isDivisible.isDivisible,
isMACAddress: isMACAddress.isMACAddress,
isBase64: isBase64.isBase64,
isBase32: isBase32.isBase32,
isAscii: isAscii.isAscii,
isMD5: isMD5.isMD5,
isVehiclePlateValid: isVehiclePlateValid.isVehiclePlateValid,
colorValidator: colorValidator.isColorValid,
isMagnetURI: isMagnetURI.isMagnetURI,
isOctal: isOctal.isOctal,
version: VERSION,
author: AUTHOR
};
module.exports = cerebreus;