This is a simple example project demonstrating how to use the global-id-validator npm package to validate various types of identification numbers from different countries.
# Clone the repository
git clone https://github.com/cernadasjuan/global-id-validator
cd example
# Install dependencies
npm install
Run the example script:
node index.js
This will demonstrate validation of US Social Security Numbers (SSN)
The script will output validation results for both valid and invalid examples.
Global ID Validator Example
Example 1: US Social Security Numbers (SSN)
SSN: 123-45-6789
✅ Valid SSN! Formatted: 123-45-6789
SSN: 123-45-67890
❌ Invalid SSN: SSN must be 9 digits