1.0.23 • Published 5 years ago
@fdaciuk/test v1.0.23
iscpf
Validate CPF numbers (for Node.js and browsers)
Installation
NPM:
npm install --save iscpfYarn:
yarn add iscpfUsage
Import the lib:
ES6 Modules:
import isCpf from 'iscpf'CommonJS:
const isCpf = require('iscpf')Global (window):
;(function (isCpf) {
// ...
})(window.isCpf)Don't worry about pontuation:
console.log(isCpf('75300153206')) // true
console.log(isCpf('462.498.462-55')) // trueEnjoy ;)
License
MIT © Fernando Daciuk