identification-validator 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# identification-validator
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/identification-validator)
|
|
4
|
+
|
|
3
5
|
A simple TypeScript utility library to validate Singapore NRIC or FIN.
|
|
4
6
|
|
|
5
7
|
---
|
|
@@ -59,4 +61,4 @@ console.log(Validator.generateFIN()) // give a random FIN, with a random startin
|
|
|
59
61
|
| isValidFIN | `string` | `Validator.isValidFIN("F1234567N")` |Checks whether the given string is a valid NRIC and return a boolean response |
|
|
60
62
|
| isValidId | `string` | `Validator.isValidId("F1234567N")` |Checks whether the given string is a valid NRIC/ FIN and return a boolean response |
|
|
61
63
|
| generateNRIC | - | `Validator.generateNRIC()` |Generates a random NRIC and returns as a string |
|
|
62
|
-
| generateFIN | - | `Validator.generateFIN()` |Generates a random FIN and returns as a string |
|
|
64
|
+
| generateFIN | - | `Validator.generateFIN()` |Generates a random FIN and returns as a string |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "identification-validator",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.2",
|
|
4
|
+
"description": "TypeScript utility library to validate and generate Singapore NRIC and FIN numbers",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|