mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 23:55:20 +00:00
added passwordStrength estimator
This commit is contained in:
@@ -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(""));
|
||||
// // ->
|
||||
Reference in New Issue
Block a user