iscpf

Validate CPF Numbers (for Node.js and browsers)

  • iscpf

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
iscpf
3702.0.03 years ago8 years agoMinified + gzip package size for iscpf in KB

Readme

iscpf
Validate CPF numbers (for Node.js and browsers)

!Build Statusbuild-imagebuild-url !Licenselicense-imagelicense-url

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')

Don't worry about pontuation:
console.log(isCpf('75300153206')) // true
console.log(isCpf('462.498.462-55')) // true

Enjoy ;)

License

MITlicense-url © Fernando Daciuk