create-otp

1.0.1 • Public • Published

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

/create-otp/

    Package Sidebar

    Install

    npm i create-otp

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.35 kB

    Total Files

    3

    Last publish

    Collaborators

    • csr.15