Skip to content

Commit 9dd737e

Browse files
committed
feat: Added new validators
1 parent 72a84ba commit 9dd737e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,36 @@ npm install validate-functions
2121
- **Postal/ZIP Code Validation**: Validate based on country-specific formats. It supports top 25 countries based on ISO 3166-1 alpha-2 codes namely: US, CN, IN, ID, PK, BR, NG, BD, RU, MX, JP, ET, PH, EG, VN, CD, TR, IR, DE, TH, GB, FR, IT, TZ, ZA.
2222
- **URL Validation**: Validate structure and it supports URLs with and without protocols, and it handles query parameters and fragments.
2323

24+
### Identification and Financial Numbers:
25+
1. **Credit Card Number**: Validate using the Luhn algorithm.
26+
2. **Passport Number**: Support formats for multiple countries. (Upcoming)
27+
3. **TIN/EIN**: Validate Taxpayer Identification Number (TIN) or Employer Identification Number (EIN). (Upcoming)
28+
29+
### Contact Information:
30+
4. **Postal/ZIP Code**: Validate based on country-specific formats. It supports top 25 countries based on ISO 3166-1 alpha-2 codes namely: US, CN, IN, ID, PK, BR, NG, BD, RU, MX, JP, ET, PH, EG, VN, CD, TR, IR, DE, TH, GB, FR, IT, TZ, ZA.
31+
32+
### Personal Information:
33+
5. **Date of Birth**: Validate format and ensure the person’s age falls within a reasonable range. (Upcoming)
34+
6. **Email**: Validate email addresses which conform to standard formats.
35+
36+
### Internet/Network:
37+
7. **IP Address**: Validate IPv4 and IPv6 formats.
38+
8. **URL**: Validate structure and it supports URLs with and without protocols, and it handles query parameters and fragments.
39+
9. **MAC Address**: Validate for networking hardware.(Upcoming)
40+
41+
### Document Validation:
42+
10. **PAN (Permanent Account Number)**: For Indian tax records.(Upcoming)
43+
11. **Social Security Number (SSN)**: Validates U.S. Social Security Numbers based on predefined rules.
44+
12. **Social Insurance Number (SIN)**: For Canada or equivalent in other countries. (Upcoming)
45+
13. **Aadhaar**: Checks the validity of Indian Aadhaar numbers using specific patterns.
46+
47+
### Formats and Patterns:
48+
14. **File Extensions**: Validate file names/extensions (e.g., `.jpg`, `.pdf`). (Upcoming)
49+
50+
### Additional Utility:
51+
15. **Boolean Strings**: Validate "true", "false", "1", "0", etc. (Upcoming)
52+
16. **Hex Color Codes**: Validate `#RRGGBB` or `#RGB` color formats.
53+
17. **EAN/UPC**: Validate international product codes. (Upcoming)
54+
2455

2556
Usage details are available [here](./USAGE_DETAILS.md).

0 commit comments

Comments
 (0)