1.0.1 • Published 4 years ago
create-otp v1.0.1
What is this?
An OTP generator
Installation
Run npm i create-otp --save
use:
import createOtp from 'create-otp'
const OTP = createOtp({
limit: 6, // by default 4
alphaNum: true // to generate AlphaNumeric string and the default limit is 5
})
Parameters
If you want only number just omit alphaNum
and mention limit to return number, by default 4
Note
if you did not mention any parameter the function will return number of limit 4