1.0.1 • Published 8 years ago

za-id.js v1.0.1

Weekly downloads
7
License
ISC
Repository
github
Last release
8 years ago

za-id.js

A very small javascript package to help validate South African ID numbers.

Installation

npm install za-id.js

Usage

var valid = validateIdNumber('000000000000'); //boolean value

or

var details = {};
validateIdNumber('000000000000', details);
console.log(details.dateOfBorth); //Date value
console.log(details.SouthAfrican); //boolean value
console.log(details.Gender); //boolean value, male is true

Prerequisites

This pachage makes use of moment.js.

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago