npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

av-password-strength-checker

v1.0.4

Published

A lightweight password strength checker for Node.js projects.

Downloads

15

Readme

av-password-strength-checker

A lightweight password strength checker for Node.js projects.

This package enables the evaluation of password strength based on multiple criteria. It provides precise feedback for users to create strong passwords. The tool can be used as a Node.js module.


1. Features

  • Evaluates password length, lowercase, uppercase, numeric, and special character criteria
  • Provides feedback on missing requirements for strengthening passwords
  • Easy integration as a Node.js module
  • No external runtime dependencies apart from dev/testing
  • Includes automated tests with Jest

2. Technology Stack

  • Language: JavaScript (Node.js)
  • CLI: Built-in readline and process modules
  • Testing: Jest

3. Installation

Install with npm:

npm install av-password-strength-checker

4. Usage

const { checkPassword } = require('av-password-strength-checker');

const result = checkPassword('MyPassword123');
console.log(`Strength: ${result.strength}`);
console.log('Feedback:');
result.feedback.forEach(msg => console.log(`- ${msg}`));

Sample Output:

Password: "YourPassword123"
Strength: GOOD (4/5)
✓ Good length
✓ Has lowercase
✓ Has uppercase
✓ Has numbers
✗ Add special characters

5. Password Strength Logic

Criteria:

  • Length: Minimum 8 characters
  • Lowercase: At least one lowercase letter [a-z]
  • Uppercase: At least one uppercase letter [A-Z]
  • Numbers: At least one numeric digit [0-9]
  • Special Characters: At least one symbol (e.g., !@#$%^&*())

Strength Mapping:

| Score | Strength | |-------|-----------| | 0–2 | WEAK | | 3 | OKAY | | 4 | GOOD | | 5 | STRONG |

Feedback messages indicate criteria met and what is missing.


6. File Structure

src/index.js                 # Core logic for password strength evaluation
src/cli.js                   # Command-line interface (CLI)
test/index.test.js           # Jest-based automated tests for code reliability
test_package\test-package.js # program with predefined test cases
package.json                 # Project metadata, configuration, dependencies
README.md                    # Project documentation

7. Security Considerations

  • Evaluates password complexity and diversity.
  • Does not check against breached password databases.
  • Should be used alongside additional security measures such as hashing, rate limiting, and breach checks.