1.0.3 • Published 10 months ago

otpcaptchagenerator v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

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);