Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Check if a password is strong enough.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

password-strength

Check if a password is strong enough. Available on Node and Browser.

Build Status

Installation

Install with component(1):

$ component install yuehu/password-strength

Install with npm:

$ npm install password-strength

API

var valid = require('password-strength');
valid(password);
// -> {valid: true, strength: 'medium', hint: null}

.min

The min length of the password, default is 4.

.words

The password can't be these words, default is [].

License

MIT

Something went wrong with that request. Please try again.