otp-alpha-genrator
v1.0.0
Published
[![NPM version](https://img.shields.io/npm/v/otp-alpha-genrator.svg)](https://www.npmjs.com/package/otp-alpha-genrator)
Downloads
2
Readme
otp-alpha-genrator
A library to help you Gerate OTP and Alpha numric random Id's
Installation
Install through NPM
npm install otp-alpha-genrator
API Usage
inside nodejs project Genrate a otp
const {generateOTP} = require('otp-alpha-genrator');
let otp = generateOTP(4); // Generates a 4 digit alphanumeric OTP (5410)
generateOTP(length)
Arguments
length
- Genrate a length of digit OTP.
Examples
Take a look at my [examples]
[License Apache2]
Package Sidebar