Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 473 Bytes

readme.md

File metadata and controls

16 lines (16 loc) · 473 Bytes

What is this?

This is a simple OTP generator package.

Installation

Use npm i otp-generator to install otp-generator package. Import:

import generateOtp from 'rv-otp-generator';

Parameters

Pass digit as a parameter to generate OTP. By default digit is 4.

generateOtp(4);          // It will return 3452
generateOtp(5);          // It will return 24567

Contribution

You can buy a coffee for me by Click Here