UNPKG

otp-alternate

Version:

Publish the first npm package

53 lines (33 loc) 778 B
## Description --- The otp-alternate package helps you to generate otp very simply with one line of code and it is for practise ## Installation --- To install the package just write the below command on your cli ```javascript npm i otp-alternate ``` ## Features --- - **Generate random otp with only one line of code** - **Concate two strings** ## Usage --- 1. **Generate otp** ```javascript // Generate otp // import package import otp from "otp-alternate"; // call the function const otpValue = otp(6); console.log(otpValue); ``` 2. **Concate the two strings** ```javascript // Concate two strings // import package import { concate } from "otp-alternate"; // call the function const concateValue = concate("Hello", "Buddy"); console.log(concateValue); ```