All Projects → fdaciuk → iscpf

fdaciuk / iscpf

Licence: MIT license
Validate CPF numbers (for NodeJS and browsers)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].