Skip to content

rsoorajs/library--otp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OTP Generator for Reactjs and Nodejs

A simple npm package to generate random otp for reactjs and nodejs.

#Installation

npm i freeotp

yarn add freeotp

pnpm add freeotp

#usage for Nodejs

const otp = require("./node_modules/freeotp/node");

const generatedOtp = otp(6);
console.log(generatedOtp);
// otp(6) 6 -is the length of the otp

#usage for ReactJS

import otp from "../node_modules/freeotp/react";

const generatedOtp = otp(6);
console.log(generatedOtp);
// otp(6) 6 -is the length of the otp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published