0.0.15 • Published 2 years ago

generate-simple-password v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Generate simple passwords with 1 function

Examples Usage:

import generatePassword from "generate-simple-password";

const password = generatePassword({
  addUppercase: true,
  addLowercase: true,
  addSpecialChars: true,
});

console.log(password); // ^fBN{y{&'poi;xfM
import generatePassword from "generate-simple-password";

const password = generatePassword({
  customChars: "123ABC",
});

console.log(password); // 2BC311B3111A3A12

Parameters:

options - Object:

  • length - length of the password. Default is set to 16

  • addUppercase - set true if you want password to contain uppercase letters. Default is false

  • addLowercase - set true if you want password to contain lowercase letters. Default is false

  • addNumbers - set true if you want password to contain numbers. Default is false

  • addSpecialChars - set true if you want password to contain special characters. Default is false

  • customChars - provide a string if you want to create password out of your own set of characters


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


License

MIT

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years 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