Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

validator

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validator - npm Package Versions

1
22

5.6.0

Diff

Changelog

Source

5.6.0

  • Added an isMD5() validator (#557)
  • Fixed an exceptional case in isDate() (#566)
  • New locales (#559, #568, #571, #573)
cohara87
published 5.5.0 •

Changelog

Source

5.5.0

  • Fixed a regex denial of service in trim() and rtrim() (#556)
  • Added an Algerian locale to isMobilePhone() (#540)
  • Fixed the Hungarian locale in isAlpha() and isAlphanumeric() (#541)
  • Added a Polish locale to isMobilePhone() (#545)
cohara87
published 5.4.0 •

Changelog

Source

5.4.0

  • Accept Union Pay credit cards in isCreditCard() (#539)
  • Added Danish locale to isMobilePhone() (#538)
  • Added Hungarian locales to isAlpha(), isAlphanumeric() and isMobilePhone() (#537)
cohara87
published 5.3.0 •

Changelog

Source

5.3.0

  • Added an allow_leading_zeroes option to isInt() (#532)
  • Adjust Chinese mobile phone validation (#523)
  • Added a Canadian locale to isMobilePhone() (#524)
cohara87
published 5.2.0 •

Changelog

Source

5.2.0

  • Added a isDataURI() validator (#521)
  • Added Czech locales (#522)
  • Fixed a bug with isURL() when protocol was missing and "://" appeared in the query (#518)
cohara87
published 5.1.0 •

Changelog

Source

5.1.0

  • Added a unescape() HTML function (#509)
  • Added a Malaysian locale to isMobilePhone() (#507)
  • Added Polish locales to isAlpha() and isAlphanumeric() (#506)
  • Added Turkish locales to isAlpha(), isAlphanumeric() and isMobilePhone() (#512)
  • Allow >1 underscore in hostnames when using allow_underscores (#510)
cohara87
published 5.0.0 •

Changelog

Source

5.0.0

  • Migrate to ES6 (#496)
  • Break the library up so that individual functions can be imported (#496)
  • Remove auto-coercion of input to a string (#496)
  • Remove the extend() function (#496)
  • Added Arabic locales to isAlpha() and isAlphanumeric() (#496)
  • Fix validation of very large base64 strings (#503)
cohara87
published 4.9.0 •

Changelog

Source

4.9.0

  • Added a Russian locale to isAlpha() and isAlphanumeric() (#499)
  • Remove the restriction on adjacent hyphens in hostnames (#500)
cohara87
published 4.8.0 •

Changelog

Source

4.8.0

  • Added Spanish, French, Portuguese and Dutch support for isAlpha() and isAlphanumeric() (#492)
  • Added a Brazilian locale to isMobilePhone() (#489)
  • Reject IPv4 addresses with invalid zero padding (#490)
  • Fix the client-side version when used with RequireJS (#494)
cohara87
published 4.7.1 •

Changelog

Source

4.7.1

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc