1.2.2 • Published 5 years ago

lighthouse-utils v1.2.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
5 years ago

Lighthouse Utils

Lighthouse Utils

A javascript library used by Lighthouse projects

Installation

$ yarn add lighthouse-utils
// ou com npm
$ npm install lighthouse-utils

Test

$ yarn test
$ npm run test

Usage

import {
  capitalize,
  validateCPF,
  validateCNPJ,
  validateCCExpiry,
  validateCCNumber,
  getCCNumberInfo
} from "lighthouse-utils";

capitalize("LIGHTHOUSE - CRIAMOS APPS INSCRIVEIS"); // Lighthouse - Criamos Apps Incriveis
validateCPF("1111222233334444"); // Validate a CPF number and returns a boolean
validateCNPJ("72175221000101"); // Validate a CNPJ number and returns a boolean
validateCCNumber("5598928852411791"); // Validate credit card number and returns a boolean
validateCCExpiry("12/22"); // Validate credit card expiration date and returns a boolean
getCCNumberInfo("5598928852411791"); // Returns a object with informations about CC Number
1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago