index.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. import toDate from './lib/toDate';
  2. import toFloat from './lib/toFloat';
  3. import toInt from './lib/toInt';
  4. import toBoolean from './lib/toBoolean';
  5. import equals from './lib/equals';
  6. import contains from './lib/contains';
  7. import matches from './lib/matches';
  8. import isEmail from './lib/isEmail';
  9. import isURL from './lib/isURL';
  10. import isMACAddress from './lib/isMACAddress';
  11. import isIP from './lib/isIP';
  12. import isIPRange from './lib/isIPRange';
  13. import isFQDN from './lib/isFQDN';
  14. import isDate from './lib/isDate';
  15. import isBoolean from './lib/isBoolean';
  16. import isLocale from './lib/isLocale';
  17. import isAlpha, { locales as isAlphaLocales } from './lib/isAlpha';
  18. import isAlphanumeric, { locales as isAlphanumericLocales } from './lib/isAlphanumeric';
  19. import isNumeric from './lib/isNumeric';
  20. import isPassportNumber from './lib/isPassportNumber';
  21. import isPort from './lib/isPort';
  22. import isLowercase from './lib/isLowercase';
  23. import isUppercase from './lib/isUppercase';
  24. import isIMEI from './lib/isIMEI';
  25. import isAscii from './lib/isAscii';
  26. import isFullWidth from './lib/isFullWidth';
  27. import isHalfWidth from './lib/isHalfWidth';
  28. import isVariableWidth from './lib/isVariableWidth';
  29. import isMultibyte from './lib/isMultibyte';
  30. import isSemVer from './lib/isSemVer';
  31. import isSurrogatePair from './lib/isSurrogatePair';
  32. import isInt from './lib/isInt';
  33. import isFloat, { locales as isFloatLocales } from './lib/isFloat';
  34. import isDecimal from './lib/isDecimal';
  35. import isHexadecimal from './lib/isHexadecimal';
  36. import isOctal from './lib/isOctal';
  37. import isDivisibleBy from './lib/isDivisibleBy';
  38. import isHexColor from './lib/isHexColor';
  39. import isRgbColor from './lib/isRgbColor';
  40. import isHSL from './lib/isHSL';
  41. import isISRC from './lib/isISRC';
  42. import isIBAN, { locales as ibanLocales } from './lib/isIBAN';
  43. import isBIC from './lib/isBIC';
  44. import isMD5 from './lib/isMD5';
  45. import isHash from './lib/isHash';
  46. import isJWT from './lib/isJWT';
  47. import isJSON from './lib/isJSON';
  48. import isEmpty from './lib/isEmpty';
  49. import isLength from './lib/isLength';
  50. import isByteLength from './lib/isByteLength';
  51. import isUUID from './lib/isUUID';
  52. import isMongoId from './lib/isMongoId';
  53. import isAfter from './lib/isAfter';
  54. import isBefore from './lib/isBefore';
  55. import isIn from './lib/isIn';
  56. import isCreditCard from './lib/isCreditCard';
  57. import isIdentityCard from './lib/isIdentityCard';
  58. import isEAN from './lib/isEAN';
  59. import isISIN from './lib/isISIN';
  60. import isISBN from './lib/isISBN';
  61. import isISSN from './lib/isISSN';
  62. import isTaxID from './lib/isTaxID';
  63. import isMobilePhone, { locales as isMobilePhoneLocales } from './lib/isMobilePhone';
  64. import isEthereumAddress from './lib/isEthereumAddress';
  65. import isCurrency from './lib/isCurrency';
  66. import isBtcAddress from './lib/isBtcAddress';
  67. import isISO8601 from './lib/isISO8601';
  68. import isRFC3339 from './lib/isRFC3339';
  69. import isISO31661Alpha2 from './lib/isISO31661Alpha2';
  70. import isISO31661Alpha3 from './lib/isISO31661Alpha3';
  71. import isISO4217 from './lib/isISO4217';
  72. import isBase32 from './lib/isBase32';
  73. import isBase58 from './lib/isBase58';
  74. import isBase64 from './lib/isBase64';
  75. import isDataURI from './lib/isDataURI';
  76. import isMagnetURI from './lib/isMagnetURI';
  77. import isMimeType from './lib/isMimeType';
  78. import isLatLong from './lib/isLatLong';
  79. import isPostalCode, { locales as isPostalCodeLocales } from './lib/isPostalCode';
  80. import ltrim from './lib/ltrim';
  81. import rtrim from './lib/rtrim';
  82. import trim from './lib/trim';
  83. import escape from './lib/escape';
  84. import unescape from './lib/unescape';
  85. import stripLow from './lib/stripLow';
  86. import whitelist from './lib/whitelist';
  87. import blacklist from './lib/blacklist';
  88. import isWhitelisted from './lib/isWhitelisted';
  89. import normalizeEmail from './lib/normalizeEmail';
  90. import isSlug from './lib/isSlug';
  91. import isLicensePlate from './lib/isLicensePlate';
  92. import isStrongPassword from './lib/isStrongPassword';
  93. import isVAT from './lib/isVAT';
  94. var version = '13.7.0';
  95. var validator = {
  96. version: version,
  97. toDate: toDate,
  98. toFloat: toFloat,
  99. toInt: toInt,
  100. toBoolean: toBoolean,
  101. equals: equals,
  102. contains: contains,
  103. matches: matches,
  104. isEmail: isEmail,
  105. isURL: isURL,
  106. isMACAddress: isMACAddress,
  107. isIP: isIP,
  108. isIPRange: isIPRange,
  109. isFQDN: isFQDN,
  110. isBoolean: isBoolean,
  111. isIBAN: isIBAN,
  112. isBIC: isBIC,
  113. isAlpha: isAlpha,
  114. isAlphaLocales: isAlphaLocales,
  115. isAlphanumeric: isAlphanumeric,
  116. isAlphanumericLocales: isAlphanumericLocales,
  117. isNumeric: isNumeric,
  118. isPassportNumber: isPassportNumber,
  119. isPort: isPort,
  120. isLowercase: isLowercase,
  121. isUppercase: isUppercase,
  122. isAscii: isAscii,
  123. isFullWidth: isFullWidth,
  124. isHalfWidth: isHalfWidth,
  125. isVariableWidth: isVariableWidth,
  126. isMultibyte: isMultibyte,
  127. isSemVer: isSemVer,
  128. isSurrogatePair: isSurrogatePair,
  129. isInt: isInt,
  130. isIMEI: isIMEI,
  131. isFloat: isFloat,
  132. isFloatLocales: isFloatLocales,
  133. isDecimal: isDecimal,
  134. isHexadecimal: isHexadecimal,
  135. isOctal: isOctal,
  136. isDivisibleBy: isDivisibleBy,
  137. isHexColor: isHexColor,
  138. isRgbColor: isRgbColor,
  139. isHSL: isHSL,
  140. isISRC: isISRC,
  141. isMD5: isMD5,
  142. isHash: isHash,
  143. isJWT: isJWT,
  144. isJSON: isJSON,
  145. isEmpty: isEmpty,
  146. isLength: isLength,
  147. isLocale: isLocale,
  148. isByteLength: isByteLength,
  149. isUUID: isUUID,
  150. isMongoId: isMongoId,
  151. isAfter: isAfter,
  152. isBefore: isBefore,
  153. isIn: isIn,
  154. isCreditCard: isCreditCard,
  155. isIdentityCard: isIdentityCard,
  156. isEAN: isEAN,
  157. isISIN: isISIN,
  158. isISBN: isISBN,
  159. isISSN: isISSN,
  160. isMobilePhone: isMobilePhone,
  161. isMobilePhoneLocales: isMobilePhoneLocales,
  162. isPostalCode: isPostalCode,
  163. isPostalCodeLocales: isPostalCodeLocales,
  164. isEthereumAddress: isEthereumAddress,
  165. isCurrency: isCurrency,
  166. isBtcAddress: isBtcAddress,
  167. isISO8601: isISO8601,
  168. isRFC3339: isRFC3339,
  169. isISO31661Alpha2: isISO31661Alpha2,
  170. isISO31661Alpha3: isISO31661Alpha3,
  171. isISO4217: isISO4217,
  172. isBase32: isBase32,
  173. isBase58: isBase58,
  174. isBase64: isBase64,
  175. isDataURI: isDataURI,
  176. isMagnetURI: isMagnetURI,
  177. isMimeType: isMimeType,
  178. isLatLong: isLatLong,
  179. ltrim: ltrim,
  180. rtrim: rtrim,
  181. trim: trim,
  182. escape: escape,
  183. unescape: unescape,
  184. stripLow: stripLow,
  185. whitelist: whitelist,
  186. blacklist: blacklist,
  187. isWhitelisted: isWhitelisted,
  188. normalizeEmail: normalizeEmail,
  189. toString: toString,
  190. isSlug: isSlug,
  191. isStrongPassword: isStrongPassword,
  192. isTaxID: isTaxID,
  193. isDate: isDate,
  194. isLicensePlate: isLicensePlate,
  195. isVAT: isVAT,
  196. ibanLocales: ibanLocales
  197. };
  198. export default validator;