za-id

2.2.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.2.0
    1
    • latest

Version History

Package Sidebar

Install

npm i za-id

Weekly Downloads

1

Version

2.2.0

License

ISC

Unpacked Size

25.4 kB

Total Files

8

Last publish

Collaborators

  • jonathanpeel