npm.io
2.0.0 • Published 5 years ago

iscpf

Licence
MIT
Version
2.0.0
Deps
0
Size
15 kB
Vulns
0
Weekly
0
Stars
36

iscpf

Validate CPF numbers (for Node.js and browsers)

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

Don't worry about pontuation:

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

Enjoy ;)

License

MIT Fernando Daciuk

Keywords