npm.io
1.1.3 • Published 3 years ago

otp-alternate

Licence
ISC
Version
1.1.3
Deps
1
Size
2 kB
Vulns
0
Weekly
0

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


npm i otp-alternate

Features


  • Generate random otp with only one line of code
  • Concate two strings

Usage


  1. Generate otp

// Generate otp

// import package
import otp from "otp-alternate";

// call the function
const otpValue = otp(6);

console.log(otpValue);
  1. Concate the two strings

// Concate two strings

// import package
import { concate } from "otp-alternate";

// call the function
const concateValue = concate("Hello", "Buddy");

console.log(concateValue);

Keywords