Socket
Socket
Sign inDemoInstall

south-african-fake-id-generator

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

south-african-fake-id-generator

This package generates valid and invalid dummy south african id numbers.


Version published
Weekly downloads
429
decreased by-24.2%
Maintainers
1
Weekly downloads
 
Created
Source

🇿🇦 South African Fake Id Generator (DummySAID API)

Demo | Docs | About Midas Touch Tech |

Travis (.com)

npm bundle size

Implementation

What does it do?

This package generates valid and invalid fake (random) South African Identity numbers.

This library can also check if the ID number supplied is a valid SouthAfrican ID number.

To find out more about the structure of a South African ID number visit this link

How to use it?

Download the library from NPM using the following command in a terminal:


 npm install --save south-african-fake-id-generator

Usage In NodeJS


 var fakeSaIdGenerator = require('south-african-fake-id-generator');

 // Generate valid random id number
 var fakeId = fakeSaIdGenerator.generateFakeId();

 // Generate invalid random id number
 var fakeId = fakeSaIdGenerator.generateInvalidFakeId();

 // Generate valid random id number by age
 var fakeId = fakeSaIdGenerator.generateFakeIdByAge('23'); 
 
 // Note: age input parameter is a string 

 // Generate invalid random id number by age
 var fakeId = fakeSaIdGenerator.generateInvalidFakeIdByAge('78');

 // Check if Id number is valid
 var fakeId = fakeSaIdGenerator.isValid(9701286633088);  // false

License

Copyright 2020, Ayabonga Qwabi

This library can be used free of charge under either the ISC license or the GNU GPL 3.0.

Keywords

FAQs

Package last updated on 06 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc