Note: IE9 is not supported in this module.
First, install it.
npm i vanilla-text-mask --save
Then, use it as follows:
As you can see in the code above, you are passing an object to
The object takes
inputElement, which is the
<input/> element that you are masking. It also
accepts other values which are
To see an example of the code running, follow these steps:
- Clone the repo,
git clone firstname.lastname@example.org:text-mask/text-mask.git
npm run vanilla:dev
- Open http://localhost:3000
The code of the example is in
We would love some contributions! Check out this document to get started.