iscpf
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

/iscpf/

    Package Sidebar

    Install

    npm i iscpf

    Weekly Downloads

    2,369

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    15.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • fdaciuk