@fdaciuk/test

v1.0.23
Validate CPF Numbers (for Node.js and browsers)
cpf validate cpf

iscpf

Validate CPF numbers (for Node.js and browsers)

[![Build Status][build-image]][build-url] License

Installation

NPM:

npm install --save iscpf

Yarn:

yarn add iscpf

Usage

Import the lib:

ES6 Modules:

import isCpf from 'iscpf'

CommonJS:

const isCpf = require('iscpf')

Global (window):

;(function (isCpf) {
  // ...
})(window.isCpf)

Don't worry about pontuation:

console.log(isCpf('75300153206')) // true
console.log(isCpf('462.498.462-55')) // true

Enjoy ;)

License

MIT © Fernando Daciuk

npm i @fdaciuk/test

Metadata

  • MIT
  • Whatever
  • Fernando Daciuk - @fdaciuk
  • released 3/27/2021

Downloads

Maintainers