@if25b114/password-utilities
v1.1.0
Published
A small library that provides password utility functions
Readme
@if25b114/password-utilities
A small JavaScript library that provides password utility functions.
Installation
npm install @if25b114/password-utilitiesUsage
const { generateStrongPassword, isStrongPassword } = require('@if25b114/password-utilities');
const pwd = generateStrongPassword(16);
console.log(pwd);
console.log(isStrongPassword(pwd));Functions
generateStrongPassword(length)- Generates a random password of the given length (default: 12). The generated password is guaranteed to passisStrongPassword.isStrongPassword(password)- Returnstrueif the password has at least 8 characters, one uppercase letter, one lowercase letter, one digit, and one special character.
License
MIT
