Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

otp-generator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otp-generator

One time password generator

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48K
decreased by-2.53%
Maintainers
1
Weekly downloads
 
Created
Source

#otp-generator

'otp-generator' is simple one time password generator and can be used as password generator.

Build Status npm version npm Test Coverage js-standard-style

NPM

Index

Install

npm install otp-generator --save

Usage

const otpGenerator = require('otp-generator')

otpGenerator.generate(6, { upperCaseAlphabets: false, specialChars: false });

generate(length, options)

Arguments

  • length - length of password. Optional if options is optional. default length is 10.
  • options - optional
    • digits - Default: true true value includes digits in OTP
    • lowerCaseAlphabets - Default: true true value includes lowercase alphabets in OTP
    • upperCaseAlphabets - Default: true true value includes uppercase alphabets in OTP
    • specialChars - Default: true true value includes special Characters in OTP

Tests

npm test

License

MIT

Keywords

FAQs

Package last updated on 03 Feb 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc