4.0.1 • Published 2 years ago

otp-generator v4.0.1

Weekly downloads
3,559
License
MIT
Repository
github
Last release
2 years ago

#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

4.0.1

2 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago