@@ -16,11 +16,15 @@ Then you can use the available methods for different available validators:
16
16
``` javascript
17
17
IRCheck .Phone .checkType (' 02191001848' ); // returns 'LANDLINE'
18
18
IRCheck .Phone .normalizeMobile (' +989121234567' ); // returns '9121234567'
19
+ IRCheck .Postal .isPostalCodeValid (' 7634598734' ); // returns 'TRUE'
20
+ IRCheck .National .isNationalCodeValid (' 4721016352' ); // returns 'TRUE'
19
21
```
20
22
21
23
## Validators Availability
22
24
Currently, the following validators are available:
23
25
* [ Iran Phone Numbers] ( #phone )
26
+ * [ Iran Postal] ( #postal )
27
+ * [ Iran National Codes] ( #national )
24
28
25
29
### Phone
26
30
Here’s a list of available methods:
@@ -29,10 +33,25 @@ Here’s a list of available methods:
29
33
* ` isLandline(number) ` Verify the input number is a type of landline
30
34
* ` normalizeMobile(number) ` Normalize a mobile number as 9121234567
31
35
* ` normalizeLandline(number) ` Normalize a landline number as 2191001848
32
- * ` getProvinceData(number ) ` Get province info from its area code or code name
36
+ * ` getProvinceData(province {String|Number} ) ` Get province info from its area code or code name
33
37
* ` getProvincesFromLandline(number) ` Extract province data from a landline numbers
34
38
39
+ ### Postal
40
+ Here’s a list of available methods:
41
+ * ` isPostalCodeValid(postalCode {String}) ` Check if the entered postal code is valid
42
+
43
+ ### National
44
+ Here’s a list of available methods:
45
+ * ` isNationalCodeValid(nationalCode {String}) ` Check if the entered Iranian national code is valid
46
+
47
+
35
48
## History
49
+ ### 0.3.0
50
+ * Postal code validation has been added into the library.
51
+ * National code validation has been added into the library.
52
+ * Updating README.md file.
53
+ * A few changes in the main file.
54
+
36
55
### 0.1.1
37
56
* Fixing typo errors in README.md file.
38
57
0 commit comments