Noteworthy Placebo Mongers

    @brazilian-utils/format-cnpj

    0.1.9 • Public • Published

    @brazilian-utils/format-cnpj

    Return CNPJ formatted with mask.

    Installation

    # Yarn
    yarn add @brazilian-utils/format-cnpj
    
    # npm
    npm install @brazilian-utils/format-cnpj --save
    
    # UMD
    <script type='text/javascript' src='https://unpkg.com/@brazilian-utils/format-cnpj/dist/index.umd.js'></script>

    Usage

    import formatCnpj from '@brazilian-utils/format-cnpj';
    
    formatCnpj('46'); // 46
    formatCnpj('468'); // 46.8
    formatCnpj('468434'); // 46.843.4
    formatCnpj('468434850'); // 46.843.485/0
    formatCnpj('46843485000186'); // 46.843.485/0001-86

    Install

    npm i @brazilian-utils/format-cnpj

    DownloadsWeekly Downloads

    1,053

    Version

    0.1.9

    License

    MIT

    Unpacked Size

    9.06 kB

    Total Files

    9

    Last publish

    Collaborators

    • andreoav
    • hyanmandian
    • lucassveloso