is.js can take a string and check against known text formats.
The is.js library is currently available for Node.js, jQuery and regular ol' stand-alone JavaScript.
Checks string to be a:
Date
Time
Date and time
Credit card number
ISBN number
Latitude
Longitude
Phone number
ZIP code
What is new in this release:
- Add a Luhn algorithm as a check function. Thanks everyone who pointed out the need for it.
- Fix the README.
- Rename the regex obj to check. It just makes more sense since we now have function tests.
What is new in version 0.2.0:
- Added ability to test via functions.
Comments not found