Nupital Pomp Mesmerises

    @lacussoft/cpf-val
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    LacusSoft :: cpf-val

    NPM Latest Version Downloads Count Bundle Size Test Status Last Update Date Project License

    Basic function to validate CPF (Brazilian ID document).

    Browser Support

    Chrome Firefox Safari Opera Edge IE
    Latest Latest Latest Latest Latest 11

    Installation

    $ npm install @lacussoft/cpf-val

    Import

    // ES Modules
    import cpfVal from '@lacussoft/cpf-val'
    
    // Common JS
    const cpfVal = require('@lacussoft/cpf-val')

    or import it through your HTML file, using CDN:

    <script src="https://cdn.jsdelivr.net/npm/@lacussoft/cpf-val@latest/dist/cpf-val.min.js"></script>

    Usage:

    cpfVal('12345678909')     // returns 'true'
    
    cpfVal('123.456.789-09')  // returns 'true'
    
    cpfVal('12345678910')     // returns 'false'
                     ^^

    Install

    npm i @lacussoft/cpf-val

    DownloadsWeekly Downloads

    19

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    55.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • juliolmuller