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 🙏

© 2026 – Pkg Stats / Ryan Hefner

auth0-password-policies

v2.2.0

Published

Password policies presets used by Auth0. Extracted from [password-sheriff](https://github.com/auth0/password-sheriff).

Downloads

78,019

Readme

auth0-password-policies

Password policies presets used by Auth0. Extracted from password-sheriff.

Policies

none

  • minimum characters: 1

low

  • minimum characters: 6

fair

  • minimum characters: 8
  • contains at least one character in each group: lowerCase, upperCase and numbers

good

  • minimum characters: 8
  • contains at least one character in three different groups out of: lowerCase, upperCase, numbers, specialCharacters

excellent

  • minimum characters: 10
  • contains at least one character in three different groups out of: lowerCase, upperCase, numbers, specialCharacters
  • may not contain any character repeated more than twice

Helpers

createRulesFromOptions

Converts an Auth0 connection.options.password_options.complexity object into a password-sheriff compatible rules object, and applies default values.

Usage:

const { PasswordPolicy } = require('password-sheriff');
const { createRulesFromOptions } = require('auth0-password-policies');

const passwordOptions = {
  character_types: ["uppercase","lowercase","number","special"],
  character_type_rule: "three_of_four",
  identical_characters: "block",
  sequential_characters: "block",
  max_length_exceeded: "error"
};

const rules = createRulesFromOptions(passwordOptions);
const customPolicy = new PasswordPolicy(rules);
console.log(customPolicy.toString());
/**
* Output is:
* * At least 15 characters in length
* * At least 3 of the following 4 types of characters:
*   * lower case letters (a-z)
*   * upper case letters (A-Z)
*   * numbers (i.e. 0-9)
*   * special characters (e.g. !@#$%^&*)
* * No more than 2 identical characters in a row (e.g., "aaa" not allowed)
* * No more than 2 sequential alphanumeric characters (e.g., "abc" not allowed)
* * Maximum password length exceeded
*/

Publishing

This package is automatically published to npm when:

  1. Tests pass: All tests must pass across Node.js versions 16, 18, and 20
  2. Version tag is pushed: Create and push a git tag following semantic versioning

Publishing Steps

  1. Update the version in package.json:

    npm version patch    # For bug fixes (1.0.0 -> 1.0.1)
    npm version minor    # For new features (1.0.0 -> 1.1.0)  
    npm version major    # For breaking changes (1.0.0 -> 2.0.0)
    npm version prerelease --preid=beta  # For beta releases (1.0.0 -> 1.0.1-beta.0)
  2. Push the tag to trigger publishing:

    git push origin master --tags

The workflow will:

  • Run tests across multiple Node.js versions
  • Only publish if all tests pass (using needs: test)
  • Publish with the appropriate npm tag (latest for stable, beta for pre-releases)
  • Use provenance for enhanced security

Tag Format

Tags must follow the format: v1.2.3 or v1.2.3-beta or v1.2.3-beta.1