1.0.0 • Published 1 year ago

@nikitababko/password-generator v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Password generator · GitHub license

Installation

  • npm - npm i @nikitababko/password-generator

  • yarn - yarn add @nikitababko/password-generator

  • pnpm - pnpm i @nikitababko/password-generator

Usage example

  // ts import
  import generatePassword from '@nikitababko/password-generator';
  
  // js import
  const generatePassword = require('@nikitababko/password-generator');
  
  
  generatePassword({ length: 16 }) // [ 'ks3vaGA@?,798FM!' ]
  
  generatePassword({ length: 16, quantity: 2 }) // [ '+q"]G322WMxi!E6d', "l@4W0Nzm3R4>Q~?r' ]

Available options

NameDescriptionDefault Value
lengthInteger, password length16
quantityInteger, number of passwords1
includeNumbersBoolean, include numberstrue
includeLowerCaseCharsBoolean, include lowercase charstrue
includeUpperCaseCharsBoolean, include uppercase charstrue
includeSymbolsBoolean, include symbolstrue
excludeSimilarCharsBoolean, exclude similar charsfalse
excludeSequentialCharsBoolean, exclude sequential charsfalse
excludeDuplicatesCharsBoolean, exclude duplicates charsfalse
excludeAmbiguousCharsBoolean, exclude ambiguous charsfalse
dontStartingWithANumberBoolean, don't starting with a numberfalse
dontStartingWithASymbolBoolean, don't starting with a symbolfalse

License

MIT

1.0.0

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.1-alfa.27

2 years ago

0.0.1-alfa.26

2 years ago

0.0.1-alfa.25

2 years ago