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

8.0.0

Diff

Changelog

Source

8.0.0

  • isURL() now requires the require_tld: false option to validate localhost (#675)
  • isURL() now rejects URLs that are protocol only (#642)
  • Fixed a bug where isMobilePhone() would silently return false if the locale was invalid or unsupported (#657)
cohara87
published 7.2.0 •

Changelog

Source

7.2.0

  • Added an option to validate any phone locale (#663)
  • Fixed a bug in credit card validation (#672)
  • Disallow whitespace, including unicode whitespace, in TLDs (#677)
  • New locales (#673, #676)
cohara87
published 7.1.0 •

Changelog

Source

7.1.0

cohara87
published 7.0.0 •

Changelog

Source

7.0.0

  • Remove isDate()
cohara87
published 6.3.0 •

Changelog

Source

6.3.0

cohara87
published 6.2.1 •

Changelog

Source

6.2.1

  • Disallow < and > in URLs (#613)
  • New locales (#610)
cohara87
published 6.2.0 •

Changelog

Source

6.2.0

  • Added an option to require an email display name (#607)
  • Added support for lt and gt to isInt() (#588)
  • New locales (#601)
cohara87
published 6.1.0 •

Changelog

Source

6.1.0

  • Added support for greater or less than in isFloat() (#544)
  • Added support for ISSN validation via isISSN() (#593)
  • Fixed a bug in normalizeEmail() (#594)
  • New locales (#585)
cohara87
published 6.0.0 •

Changelog

Source

6.0.0

  • Renamed isNull() to isEmpty() (#574)
  • Backslash is now escaped in escape() (#516)
  • Improved normalizeEmail() (#583)
  • Allow leading zeroes by default in isInt() (#532)
cohara87
published 5.7.0 •

Changelog

Source

5.7.0

  • Added support for IPv6 in isURL() (#564)
  • Added support for urls without a host (e.g. file:///foo.txt) in isURL() (#563)
  • Added support for regular expressions in the isURL() host whitelist and blacklist (#562)
  • Added support for MasterCard 2-Series BIN (#576)
  • New locales (#575, #552)
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