
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
Get the score of your password as a number.
The number can be between 0 and the length of the provided array containing the conditions against which the password will be tested.
npm i pass-score
or
yarn add pass-score
First import the function
import passScore from 'pass-score';
// or
import { passScore } from 'pass-score';
Then use it with the default patterns:
// Returns a number between 0 and 4
const score = passScore('Your-passW0rd-Str1ng');
Or with custom patterns:
// Returns a number between 0 and 2
const score = passScore('Your-passW0rd-Str1ng', [
/[\W_,!?@*\(\)]/, // Special characters
/^.{8}/ // At least 8 characters
]);
The function accepts two arguments:
The predefined array with conditions contains the following:
/\d/ - The password should contain at least on digit/[A-Z]/, - The password should contain at least one uppercase letter/[\W_,!?@*\(\)]/ - The password should contain at least one special character/^.{8}/ - The password should be at least 8 characters longThe pass-score module provides a native web component. In order to use it you can import it:
import 'pass-score/component';
and then use it as shown in the demo.
The component accepts one attribute patterns which is a comma separated list of regular expressions against which the password will be matched.
MIT
FAQs
Get the score of your password
We found that pass-score demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.