2.1.0 • Published 2 years ago

ultra-dev v2.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

The ultra-dev library is a set of resources for common development tasks.

Installation

Installation ultra-dev

  npm install ultra-dev

Functionalities

General

  • Credit card generator and validator
  • Palondrome generator and validator
  • Currency formatter
  • Vehicle plate generator and validator

Brazil

  • CPF generator and validator
  • CNPJ generator and validator
  • RG generator and validator
  • CEP generator and validator
  • CNH generator and validator

API documentation

CpfService

MethodParametersReturnDescription
toGeneratewithMask: boolean = falsestringReturn a CPF. If "withMask" is set to true, the CPF will be returned with a mask
validatevalue: stringbooleanReturns true if the value is valid

CnpjService

MethodParametersReturnDescription
toGeneratewithMask: boolean = falsestringReturn a CNPJ. If "withMask" is set to true, the CNPJ will be returned with a mask
validatevalue: stringbooleanReturns true if the value is valid

RgService

MethodParametersReturnDescription
toGeneratewithMask: boolean = falsestringReturn a RG. If "withMask" is set to true, the RG will be returned with a mask
validatevalue: stringbooleanReturns true if the value is valid

PalindromeService

MethodParametersReturnDescription
toGeneratewithMask: boolean = falsestringReturn a Palindrome
validatevalue: stringbooleanReturns true if the value is valid

CreditCardService

MethodParametersReturnDescription
toGeneratebrand: TypeCreditCardBrandIRetrunCreditCardBrandReturns a credit card according to the brands
validatevalue: stringbooleanReturns true if the value is valid

CurrencyService

MethodParametersReturnDescription
formatvalue: number, currencySymbol: TypeCurrencySymbols = 'R$', decimalCount: number = 2, decimalSeparator: string = ',', thousandsSeparator: string = '.'stringReturns the number in currency format
removeFormattingvalue: stringnumberRemove currency formatting

Authors

Reference

2.1.0

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.2

3 years ago

0.0.3

3 years ago

0.0.1

3 years ago