credsgen
v1.0.2
Published
The purpose of this Node.js module password generator with customizable options.
Downloads
190
Maintainers
Readme
CredsGen
The purpose of this project is to build a standard Node.js module password generator with customizable options.
Installation
npm install credsgen
Usage
import credGen from 'credsgen'
// Generate a random password of default length 12
console.log(credGen());
// Generate a 16-character password with custom options
console.log(credGen(16, { uppercase: true, numbers: true }));
Options
- length: The length of the password (default is 12).
- uppercase: Include uppercase letters (default is true).
- lowercase: Include lowercase letters (default is true).
- numbers: Include numbers (default is true).
- symbols: Include symbols (default is true).