Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@rj-pkgs/vue-the-mask
Advanced tools
A lightweight and dependency free mask input created specific for Vue
The original seems to be abandoned, I am trying to fix a few outstanding issues and update this repo a bit. WORK IN PROGRESS.
A lightweight and dependency free mask input created specific for Vue.js
yarn add @rj-pkgs/vue-the-mask
or
npm i @rj-pkgs/vue-the-mask
import VueTheMask from '@rj-pkgs/vue-the-mask'
Vue.use(VueTheMask)
import { TheMask } from '@rj-pkgs/vue-the-mask'
export default {
components: { TheMask }
}
import { mask } from '@rj-pkgs/vue-the-mask'
export default {
directives: { mask }
}
'#': {pattern: /\d/},
'X': {pattern: /[0-9a-zA-Z]/},
'S': {pattern: /[a-zA-Z]/},
'A': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleUpperCase()},
'a': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleLowerCase()},
'!': {escape: true}
Property | Required | Type | Default | Description |
---|---|---|---|---|
value | false | String | Input value or v-model | |
mask | true | String, Array | Mask pattern | |
masked | false | Boolean | false | emit value with mask chars, default is raw |
placeholder | false | String | Same as html input | |
type | false | String | 'text' | Input type (email, tel, number, ...) |
tokens | false | Object | tokens | Custom tokens for mask |
You're free to contribute to this project by submitting Issues and/or pull requests. This project is test-driven, so keep in mind that every change and new feature should be covered by tests. Your name will be added to the hall of fame ;)
This project is licensed under MIT License
FAQs
A lightweight and dependency free mask input created specific for Vue
The npm package @rj-pkgs/vue-the-mask receives a total of 11 weekly downloads. As such, @rj-pkgs/vue-the-mask popularity was classified as not popular.
We found that @rj-pkgs/vue-the-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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.