SkillAgentSearch skills...

Iscpf

Validate CPF numbers (for NodeJS and browsers)

Install / Use

/learn @fdaciuk/Iscpf
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars36
CategoryDevelopment
Updated1y ago
Forks5

Languages

TypeScript

Security Score

75/100

Audited on Jun 4, 2024

No findings