persian-ssn-validator
v1.0.6
Published
Validate Persian Ssn Code
Downloads
11
Readme
Validate Persian Ssn Code
اعتبار سنجی کد ملی ایرانیان
import {isValidIranianNationalId} from "persian-ssn-validator"
const ssn = isValidIranianNationalId('1234567890')
console.log(ssn)
//result => False | True (bolean)
Installation
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
If this is a brand new project, make sure to create a package.json
first with
the npm init
command.
Installation is done using the
npm install
command:
$ npm install persian-ssn-validator