New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vs-otp-generator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vs-otp-generator

Otp genrator

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

vs-otp-generator

A lightweight, zero-dependency JavaScript package to generate secure OTPs — numeric and alphanumeric — with just one line of code. Ideal for login verification, mobile/email authentication, and testing.

🚀 Features

✅ Generate numeric OTPs (only digits)
✅ Generate alphanumeric OTPs (letters + digits)
✅ Customizable OTP length
✅ Modern ES module syntax
✅ Small, fast & zero dependencies

🚀 Installation

npm install vs-otp-generator
import { generateNumericOTP} from 'vs-otp-generator';
import { generateAlphaNumericOTP} from 'vs-otp-generator';
console.log(generateNumericOTP());

console.log(generateAlphaNumericOTP(8));


By default it genrate 6 digits of otp length but you can pass perametter acourding to your otp length

Keywords

otp

FAQs

Package last updated on 22 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts