Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-jquery-mask
Advanced tools
Readme
Vue.js component for jQuery Mask Plugin
Vue.js version | Package version | Branch |
---|---|---|
2.x | 1.x | 1.x |
3.x | 2.x | master |
# Yarn
yarn add vue-jquery-mask
# npm
npm install vue-jquery-mask
// webpack.config.js
plugins: [
new webpack.ProvidePlugin({
jQuery: 'jquery',
'window.jQuery': 'jquery',
$: 'jquery',
}),
]
<template>
<div>
<vue-mask
class="form-control"
v-model="date"
mask="00/00/0000"
:raw="false"
:options="options">
</vue-mask>
</div>
</template>
<script>
// Import this component
import vueMask from 'vue-jquery-mask';
export default {
data () {
return {
date: null,
options: {
placeholder: '__/__/____',
// http://igorescobar.github.io/jQuery-Mask-Plugin/docs.html
}
}
},
components: {
vueMask
}
}
</script>
import {createApp} from 'vue';
import VueMask from 'vue-jquery-mask';
const app = createApp().mount('#app')
app.use(VueMask);
This will register a global component <vue-mask>
The component accepts these props:
Attribute | Type | Default | Required? | Description |
---|---|---|---|---|
v-model | String / null | null | true | Set or Get input value |
mask | String / Function | | true | Masking pattern |
options | Object | {} | false | Configuration options |
raw | Boolean | true | false | When set to false ; emits formatted value with format pattern and delimiters |
<!-- Vue js -->
<script src="https://cdn.jsdelivr.net/npm/vue@3"></script>
<!-- Lastly add this package -->
<script src="https://cdn.jsdelivr.net/npm/vue-jquery-mask@2"></script>
<!-- Register global component -->
<script>
// Your app init login may go here
app.use(VuejQueryMask)
</script>
>=10.13
and yarn >=1.x
pre-installedyarn install
yarn start
http://localhost:9000
in your default web browserPlease see CHANGELOG for more information what has changed recently.
MIT License
FAQs
Vue.js component for jquery mask plugin
The npm package vue-jquery-mask receives a total of 138 weekly downloads. As such, vue-jquery-mask popularity was classified as not popular.
We found that vue-jquery-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.