@type-ddd/password
Version:
Library that provides TypeScript type definitions for handling Password in Domain-Driven Design contexts. It facilitates the validation and manipulation of passwords.
11 lines (10 loc) • 347 B
TypeScript
export type ILength = 8 | 10 | 12 | 14 | 16 | 18;
/**
*
* @param length password length as number 8/10/12/14/16/18
* @returns string password as plainText
* @default 14 chars is recommended for strongest password
*/
declare const passwordGenerator: (length: ILength) => string;
export { passwordGenerator };
export default passwordGenerator;