0.2.7 • Published 1 year ago

validator-sa v0.2.7

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

validator-sa

Implements validation and normalization of strings, for South African ID numbers. Maybe in future other validation that is specific to South Africa.

Here is a usage example inside a React component. You can test and validate ID numbers there, with error feedback.

How to Use

Install it via npm:

npm i validator-sa

In ES6, import what you need:

import { isValidSouthAfricanIDNumber } from 'validator-sa'

In ES5, require it, and use it form there:

var validator = require('validator-sa');

var isValid = validator.isValidSouthAfricanIDNumber('123')
// `isValid` should be false

API

Documentation is here.

TODO: Not all functions are documented.

Development

Publish

In order to publish to npmjs.com, ensure to run the prepublish script first, then publish the package:

  • npm run prepublish
  • npm version patch
  • npm publish
0.2.7

1 year ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.4

6 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago