Skip to content

Version 0.13.0

Latest
Compare
Choose a tag to compare
@VitorLuizC VitorLuizC released this 10 Jun 03:15

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.@@@/@@@@-@@'

    Thanks to @dchueri for PR #61.

All the changes

0.12.0...0.13.0