sa-id-gen
v1.0.3
Published
Generate fake South African ID
Downloads
20
Readme
sa-id-gen
Generate fake South African ID
Table of Contents
About
Generates a random fake South African. Can be configured when needed. Based on generate-sa-idnumbers.
Install
Install the package locally within you project folder with your package manager:
With npm
:
npm install sa-id-gen
With yarn
:
yarn add sa-id-gen
With pnpm
:
pnpm add sa-id-gen
Usage
const generateID = require('sa-id-gen')
console.log(generateID({
year: '93', // Last two digits of year
month: '01',
day: '21',
sequence: '908', // 000 - 999
gender: 'male', // 'male' or 'female'
citizenship: 'citizen' // 'citizen' or 'resident'
})) // ''9301215908081'
Using the CLI:
$ sa-id-gen
New ID generated:
🆔 9309165206083
The ID has been copied to your clipboard. 📋
Can also be configured
$ sa-id-gen --gender=female
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature' 3.Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT