added passwordStrength estimator

This commit is contained in:
xnacly
2021-02-03 19:39:37 +01:00
parent 5534592888
commit 9ee879dc04
3 changed files with 73 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
import { check } from "./../util/passwordStrength";
console.log(check("123456789012345"));
// -> 0.25
console.log(check("ABCDEFGHIJKLMOPQ"));
// -> 0.25
console.log(check("ABC123___...123"));
// ->
console.log(check(""));
// ->
// console.log(check(""));
// // ->