1.1.3 • Published 10 months ago

i-am-password-generator v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Password Generator

A simple npm package for generating random passwords.

Installation

Use npm to install the package:

  • npm install password-generator
const passwordGenerator = require('password-generator');

// Generate a password with default length (15) and no special characters
const password = passwordGenerator.generate();
console.log(password);


// Generate a password with custom length and including special characters
const customLength = 10;
const includeSpecialChars = true;
const customPassword = passwordGenerator.generate(customLength, includeSpecialChars);
console.log(customPassword);
  • The generate function takes two optional parameters:
  • length (number): The length of the generated password. Defaults to 15 if not provided.
  • specialChars (boolean): Whether to include special characters in the generated password. Defaults to false if not provided.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Credits

This npm package was developed by Eitan Lander. You can find more of Eitan's work on GitHub.

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago