@alejofl/password-utilities v1.1.0
@alejofl/password-utilities
Small, useful JavaScript library that provides password utility functions.
Table of Contents
Installation
Install via npm:
npm install @alejofl/password-utilitiesInstall via yarn:
yarn add @alejofl/password-utilitiesInstall via pnpm:
pnpm add @alejofl/password-utilitiesExamples of Usage
Generate a strong password with a length of 12 characters. This will be a strong password, checked with the isStrongPassword function:
import { generateStrongPassword } from '@alejofl/password-utilities';
const password = generateStrongPassword();
console.log(`Generated password: ${password}`); // Generated password: <12-character-password>Check if a password is strong (i.e. contains at least one uppercase letter, one lowercase letter, one digit, and one special character):
import { isStrongPassword } from '@alejofl/password-utilities';
const isStrong = isStrongPassword('pC%mD8TpCKn2');
console.log(`Is the password strong? ${isStrong}`); // Is the password strong? trueContribution
Contributions are welcome! Please see CONTRIBUTING.md for more details.
Security
Please refer to our SECURITY.md for information about our security policies, how to report vulnerabilities, and our approach to handling security concerns.
License
This project is licensed under the MIT License.
Final Remarks
This project was done in an academic environment, as part of the curriculum of Continuous Integration from University of Applied Sciences Technikum Wien (UASTW). The project was carried out by Alejo Flores Lucey and Amelia Maier.