import { invariant } from './chunk-JBXZG2HJ.mjs';

// src/mask/index.ts
function mask(cc, num = 4, mask2 = "*") {
  invariant(cc);
  return `${cc}`.slice(-num).padStart(`${cc}`.length, mask2);
}

export { mask };
