This package has been deprecated

Author message:

This has been renamed to za-id

za-id.js

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i za-id.js

Weekly Downloads

8

Version

1.0.1

License

ISC

Last publish

Collaborators

  • jonathanpeel