npm.io
0.0.5-beta.4 • Published 6 years ago

persian-validation

Licence
MIT
Version
0.0.5-beta.4
Deps
2
Size
17 kB
Vulns
4
Weekly
0

Persian Validation

Sheba And SSN Validation Methods

Installation

npm install persian-validation --save

Usage

Example:

import {ssn, sheba} from "persian-validation"

if(sheba("IR030570021980012924324101")){
  console.log("Its OK!")
}

if(!ssn("11111111111")){
  console.log("Its Not OK!")
}

License

This project is open-sourced software licensed under the MIT license.