Minor Changes
-
Add
formatToHiddenDigits
format to hide digits using received range and hider character.formatToHiddenDigits('00.000-000') //=> '**.*00-000' formatToHiddenDigits('03/04/2002', { hider: '-' }) //=> '--/-4/2002' formatToHiddenDigits('111.111.111-11', { range: [4, 9] }) //=> '111.***.***-11' formatToHiddenDigits('12.345.678-9', { hider: '#', range: 5 }) //=> '##.###.678-9' formatToHiddenDigits('52.715.348/0001-69', { hider: '@', range: -9 }) //=> '52.715.@@@/@@@@-@@'