2.2.0 • Published 6 years ago

za-id v2.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

za-id.js

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

Installation

npm install za-id

Usage

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

or

var details = {};
validateIdNumber('000000000000', details);
console.log(details.dateOfBirth); // Date value
console.log(details.SouthAfrican); // boolean value
console.log(details.Gender); // 'Male' | 'Female'

Prerequisites

This package makes use of moment.js, and lodash.

Typescript

a d.ts file is included in the package

Licence

ISC License. Copyright (c) 2017, Jonathan Peel.

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago