brazilian-masks

    3.1.0 • Public • Published

    brazilian-masks

    Installation

    You can install it with npm or yarn.

    Try:

    • npm: npm install brazilian-masks
    • yarn: yarn add brazilian-masks

    Usage

    const { maskName } = require('brazilian-mask')

    Example

    const { cpfMask } = require('brazilian-mask')
    cpfMask('11144477735') //=> '111.444.777-35'
    const { cnpjMask } = require('brazilian-mask')
    cnpjMask('13093488000190') //=> '13.093.488/0001-90'
    const { cepMask } = require('brazilian-mask')
    cepMask('29050425') //=> '29050-425'
    const { rgMask } = require('brazilian-mask')
    rgMask('423198373') //=> '42.319.837-3'

    License

    MIT © Maycon Alves

    Install

    npm i brazilian-masks

    DownloadsWeekly Downloads

    13

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    5.73 kB

    Total Files

    13

    Last publish

    Collaborators

    • mayconbalves1