UNPKG

rv-otp-generator

Version:
17 lines (16 loc) 473 B
## 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](http://www.google.com)