OTP-Agent
OTP(One-Time-Password) generator for JavaScript
Installation
This is a Node.js module available through the
npm registry.
Installation is done using the
npm install
command:
$ npm install otp-agent
Example & Usage
const otpAgent = ; const otpLength = 6;var otp = otpAgent;console; otp = otpAgent;console; otp = otpAgent;console;
Note
- Can be used to generate OTP using numbers, alphabets, upperCaseAlphabets, special characters and have option to choose either one of them.
- otpLength - length of OTP, default length is 10 and OTP length cannot be more than 10 characters.
- By default all options are true if any options are not provided.
Author
License
© Licensed under the MIT License.