This package is a validator for the Persian national id and generates a valid Persian national id
Install my-project with npm
npm i persian-national-id
used to check the validity of the national id
Example:
ValidNationalId('1234567890') // return false
used to generate the valid national id (fake national id)
Example:
GenerateNationalId() // return '0959744487'
This is a open-source project. Fork the project, complete the code and send pull request.