1.4.1 • Published 12 months ago

@lacussoft/cpf-val v1.4.1

Weekly downloads
14
License
MIT
Repository
github
Last release
12 months ago

LacusSoft :: cpf-val

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

Utility function to validate CPF (Brazilian ID document).

Browser Support

ChromeFirefoxSafariOperaEdgeIE
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔11 ✔

Installation

# using NPM
$ npm install --save @lacussoft/cpf-val

# using Bun
$ bun add @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'
                 ^^
1.2.0

1 year ago

1.4.1

12 months ago

1.4.0

12 months ago

1.3.1

12 months ago

1.2.2

1 year ago

1.3.0

12 months ago

1.2.1

1 year ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago