JSPM

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

tools for validation and normalization

Package Exports

  • anywhere-tools

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 (anywhere-tools) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ANYWHERE-TOOLS

WHAT IS IT

Basic tools that we use in our projects for validation and formatting of CPF, CNPJ and EMAIL.

HOW TO USE

Just npm install anywhere-tools or yarn add anywhere-tools and then you can import it in your project.

EXAMPLE

import {CPF} from 'anywhere-tools'

CPF.validate('561.559.244-30') //returns true because it's a valid CPF
CPF.format('56155924430') //returns the formatted CPF