@ssibrahimbas/v-mask

mask directive for vue3
83,819 1
Install
npm install @ssibrahimbas/v-mask
Latest Version:1.0.0
Vue:3
License:MIT
Last Updated:Nov 2, 2022
Links: GitHub  ·  npm
Maintainer: ssibrahimbase

What Is It?

v-mask is a directive for Vue.js 3 that allows you to mask input fields.

This package inspired by vue-the-mask

Installation

npm install @ssibrahimbas/v-mask

Usage

import { createApp } from "vue";
import VMask from "@ssibrahimbas/v-mask";

const app = createApp(App).use(VMask).mount("#app");
<input v-mask="'###-##-##'" />

### Tokens

Token Description
# Digit
X Any character
S Any text character
A Any uppercase character
a Any lowercase character
! Any alphanumeric character

Options

Option Type Default Description
mask String '' Mask to be applied to the input

Related Packages

v-inputmask

Input mask directive for Vue 2.* based on jquery.inputmask

9,512 9
@titou10/v-mask

mask directive for vue.js that exposes the unmasked value

5,749 22
v-slim-mask

A input mask directtive compatible with Vue 3 (~1.5kb)

7,789 6
vue-r-mask

Masked input directive for vue.js 2

7,495
v-money

Vue currency input/directive mask

1,404,492

Version History

Version Released License
1.0.0 MIT