1.0.0 • Published 1 year ago

bestpassssssss v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Password Validator

A simple password validator package for Node.js. Provides functions to validate password strength based on various criteria.

Installation

To install the package, run the following command:

Usage

To use the password validator, you can import the functions you need and call them with the appropriate arguments. Here's an example:

const passwordValidator = require('password-validator');

const options = {
  minLength: 8,
  maxLength: 20,
  requireUppercase: true,
  requireLowercase: true,
  requireDigit: true,
  requireSpecialChar: true,
};

const password = 'MySecurePassword1!';

if (passwordValidator.isValidPassword(password, options)) {
  console.log('Password is valid');
} else {
  console.log('Password is invalid');
}

# Bestpassssssss
1.0.0

1 year ago