
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
password-rules
Advanced tools
Enforce rules on passwords.
npm install --save password-rules
Or download password-rules.js for a browser.
rules('pw', options)Options:
minimumLength: default 8maximumLength: default InfinityrequireCapital: default truerequireLower: default truerequireNumber: default truerequireSpecial: default falseReturns false if there are no issues. Otherwise, returns an object like
{ sentence: 'Password must be at least 8 letters long, contain a capital letter, contain a number, and contain a special character.',
issues:
[ { reason: 'minimumLength',
message: 'Password must be at least 8 letters long',
part: 'be at least 8 letters long' },
{ reason: 'requireCapital',
message: 'Password must contain a capital letter',
part: 'contain a capital letter' },
{ reason: 'requireNumber',
message: 'Password must contain a number',
part: 'contain a number' },
{ reason: 'requireSpecial',
message: 'Password must contain a special character',
part: 'contain a special character'} ] }
FAQs
enforce rules for reasonable passwords
The npm package password-rules receives a total of 312 weekly downloads. As such, password-rules popularity was classified as not popular.
We found that password-rules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.