UNPKG

@darkobits/mask-string

Version:
11 lines (10 loc) 266 B
/** * Provided a mask character and a string, returns a string of mask characters * of the same length. * * @example * * maskAll('foo') // => '***' * maskAll('bar', '#') // => '###' */ export default function maskAll(str: string, maskChar?: string): string;