matrix-react-sdk
Version:
SDK for matrix.org using React
11 lines (10 loc) • 385 B
TypeScript
import zxcvbn from 'zxcvbn';
/**
* Wrapper around zxcvbn password strength estimation
* Include this only from async components: it pulls in zxcvbn
* (obviously) which is large.
*
* @param {string} password Password to score
* @returns {object} Score result with `score` and `feedback` properties
*/
export declare function scorePassword(password: string): zxcvbn.ZXCVBNResult;