passchecker

1.0.1 • Public • Published

Run js

Install by NPM

npm install --save passchecker

Build

gopherjs build

Rum example

node example.js 

How to use it

require('./passchecker.js');
var main = global.passchecker;

console.log('Creating a new passchecker');
var pChecker = main.New();

console.log('Calling method to have the password strength!');
console.log(pChecker.GetStrength('test'));
console.log(pChecker.GetStrength('test pa'));
console.log(pChecker.GetStrength('test passwd'));

// the response is a list with two floats.
// ex: [ 0.0, 0.0 ] - the first is the password strength from 6.0 to 10 and second one is a percent from 0 to 100.

Readme

Keywords

none

Package Sidebar

Install

npm i passchecker

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • heltonalves