otpcaptchagenerator
v1.0.3
Published
it is otp and captcha gerator package.
Downloads
13
Maintainers
Readme
OTP and CAPTCHA Generator
This is a simple JavaScript module that provides functions to generate OTP (One-Time Password) and CAPTCHA codes.
OTP Generator
generateOTP(length)
Generates a numeric OTP of the specified length.
Example:
const { generateOTP } = require('otpcaptchagenerator');
const otp = generateOTP(6);
console.log('Generated OTP:', otp);
const { generateCaptcha } = require('otpcaptchagenerator');
const captcha = generateCaptcha(8);
console.log('Generated CAPTCHA code:', captcha);
npm install otpcaptchagenerator
const { generateOTP, generateCaptcha } = require('otpcaptchagenerator');
const otp = generateOTP(6);
const captcha = generateCaptcha(8);
console.log('Generated OTP:', otp);
console.log('Generated CAPTCHA code:', captcha);