• Release latest: v1.0.0
  • Open a issues
  • Repository
  • Installation


    npm i @fieldmask/javascript

    How to use


    fieldmask()

    Predefined Masks

    ⭐ How to create custom mask format

    Indicator for define mask: 0

    - Example with string only
    fieldmask({ 'date': '00-00-0000' })

    - Mask options type
    fieldmask({ 'customMaskName': string | [maskFormat, options?: { reverse: boolean, // Reverse the typing start side prefix: string, // prefix+mask suffix: string, // mask+suffix }] })

    - Example with options
    fieldmask({ 'real': ['00,00', {prefix: 'R$', reverse: true}] })