JSPM

  • Created
  • Published
  • Downloads 116
  • Score
    100M100P100Q71909F
  • License MIT

Javascript library made to validate, several form fields, such as: email, phone, password, cpf etc.

Package Exports

  • multiform-validator
  • multiform-validator/index.js

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

Readme

Multiform-validator

npm version License: MIT

English

This npm package provides JavaScript functions to validate many forms field

Installation

npm install multiform-validator

how to use:

const {cpfIsValid, cnpjIsValid} = require('multiform-validator');
console.log(cpfIsValid('CPFNUMBER')); return true or false
console.log(cnpjIsValid('CNPJNUMBER')); return true or false

or

import {cpfIsValid, cnpjIsValid} from 'multiform-validator';
console.log(cpfIsValid('CPFNUMBER')); return true or false
console.log(cnpjIsValid('CNPJNUMBER')); return true or false

IMPORTANT

Code under development...