JSPM

cpf-validator

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37
  • Score
    100M100P100Q55938F
  • License MIT

package for cpf validation

Package Exports

  • cpf-validator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cpf-validator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CPF Validator

CPF Validator is a module to validate brazilians' CPF, it can be used in two different forms, with or without punctuation, it's better explained at Usage.

Installation

npm i cpf-validator

Importing

const cpfValidator = require('cpf-validator');

Usage

cpfValidator.isValid('111.111.111-11');
cpfValidator.isValid('11111111111');