
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
password-sheriff
Advanced tools
Password policy enforcer.
npm install password-sheriff
var createPolicy = require('password-sheriff');
var policy = createPolicy('good');
// Creates a password based on OWASP password recommendations
var policyOWASP = createPolicy('excellent');
// Displays the following password criteria:
// * 8 characters in length
// * contain 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. !@#$%^&*)
console.log(policy.toString());
// returns false, it does not meet requirements
policy.check('hello');
policy.check('helloAD');
// returns true
policy.check('helloA1S2D1');
// asserts a password (throws an exception if invalid)
policy.assert('hello');
FAQs
Password policy checker/enforcer.
The npm package password-sheriff receives a total of 29,468 weekly downloads. As such, password-sheriff popularity was classified as popular.
We found that password-sheriff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 46 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.