@this-empathy/javascript-mask
v1.1.9
Published
A package to apply masks on input data with vanilla js
Downloads
41
Readme
Javascript Mask
A package to validate strings and input data with vanilla js.
Getting Started
Install
Install via npm:
npm install @this-empathy/javascript-mask
Install via yarn:
yarn add @this-empathy/javascript-mask
How to use
Import
import Mask from '@this-empathy/javascript-mask'
Mask Options
Date
Mask.date(value, locale)
| Params | required | Default value | |--------|----------|---------------| | value | true | "" | | locale | false | pt-BR |
Locale
Locale that should be used by the mask. Can be any IETF language tag.