0.0.5-beta.4 • Published 6 years ago

persian-validation v0.0.5-beta.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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.