@sumitshakya/otp.io

1.0.2 • Public • Published

Installation

yarn add @sumitshakya/otp.io

or

npm install --save @sumitshakya/otp.io

Examples

const generateOTP = require("@sumitshakya/otp.io");

const otp = generateOTP()            // random 4 digit OTP

const otp = generateOTP(6)           // random 6 digit OTP
const otp = generateOTP(7)           // random 7 digit OTP

// if you want to generate more than 4 digit otp, You can pass the number as argument

Readme

Keywords

none

Package Sidebar

Install

npm i @sumitshakya/otp.io

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

921 B

Total Files

3

Last publish

Collaborators

  • sumitshakya