/Password-Strength-Checker

A lightweight npm package to assess password strength, offering color-coded feedback for easy integration into web apps and Node.js projects.

Primary LanguageTypeScript

Password Strength Checker

npm version

A lightweight npm package written in TypeScript that provides a simple yet effective way to check the strength of passwords.

Features

  • Password Strength Assessment: Determine whether a password is weak, moderate, or strong based on customizable criteria such as length, character types, and complexity.

  • Color-Coded Feedback: Returns a color code indicating the strength of the password, allowing easy integration with user interfaces to provide visual feedback to users.

  • Easy Integration: Simple API for integrating password strength checking functionality into web applications and Node.js projects.

  • Customizable: Easily adjust the criteria for password strength assessment to suit your application's specific requirements.

Installation

Install the package via npm:

npm i check-the-password-strength

Example Usage

const password = 'MySecurePassword123'; const strength = PasswordStrengthChecker.checkPasswordStrength(password);