og

otp-generator

One Time Password generator

Showing:

Popularity

Downloads/wk

6.5K

GitHub Stars

22

Maintenance

Last Commit

3mos ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

#otp-generator

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

Build Status npm version Test Coverage js-standard-style

NPM

Index

Install

npm install otp-generator --save

Usage

var otpGenerator = require('otp-generator')

otpGenerator.generate(6, { upperCase: 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
    • alphabets - Default: true true value includes alphabets in OTP
    • upperCase - Default: true true value includes uppercase alphabets in OTP
    • specialChars - Default: true true value includes special Characters in OTP

Tests

npm test

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100