@w.dental/birth-date-mask
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

birth-date-mask

Lib for using as maks for date input
Lib para ser usada como máscara de entrada de data

Funcionamento

import birthDateMask from birth-date-mask;

The used params must be string and must be a valid value with these patterns: DD/MM/YYYY or MM/DD/YYYY 
O parâmetro usado tem que ser do tipo string e deve ser um valor válido com estes padrões: DD/MM/YYYY ou MM/DD/YYYY

const birthDate: string = birthDateMask('13081992');

If not be a valid value, it will throw an error
Caso não seja um valor válido, ele irá disparar um erro 

'You must to pass a digits as string with pattern DD/MM/YYYY or MM/DD/YYYY'

Dependencies

  • node >= 12

Configuration

  1. Install packages using npm i
  2. Update package's name and description on package.json
  3. Update {{LIB_NAME}} on .bilirc.ts

Readme

Keywords

Package Sidebar

Install

npm i @w.dental/birth-date-mask

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.44 kB

Total Files

10

Last publish

Collaborators

  • mathvaleriano
  • marcosafmartins92