Socket
Socket
Sign inDemoInstall

@stefanoruth/password-strength

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stefanoruth/password-strength

Easy to use password strength validator.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
5.42 kB
Created
Weekly downloads
 

Readme

Source

Password Strength

Easy to use password strength validator.

Build

Installation

yarn add @stefanoruth/password-strength

Usage

import { passwordStrength } from '@stefanoruth/password-strength'

const validation = passwordStrength('input-password', {
    min: 8,
    max: 40,
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true,
})

if (validation.valid) {
    // Password meets all criteria.
} else {
    // Password failed to meet all criteria.
    // See validation.errors for missing criterias.
}

Keywords

FAQs

Last updated on 22 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc