safe.js

0.1.0 • Public • Published

safe.js

Is your password safe? This is a JavaScript fork of safe.

Installation

Install with npm:

$ npm install safe.js --save

Install with component(1):

$ component install lepture/safe.js

API

var safe = require('safe.js');

safe(password)

Check the safety strength of the password:

safe('password')
 
// {valid: false, strength: 'simple', message: 'password is too common'}

safe.min

Set the minimal length of the password, default is 4.

safe.words

Words hash map which are commonly used. Default data from 10000 Top Passwords.

Client Side

License

BSD

Readme

Keywords

Package Sidebar

Install

npm i safe.js

Weekly Downloads

0

Version

0.1.0

License

BSD

Last publish

Collaborators

  • lepture