Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@vueform/plugin-mask
Advanced tools
Plugin for Vueform to add input mask to text elements.
npm install @vueform/plugin-mask
vueform.config.js
// vueform.config.js
import MaskPlugin from '@vueform/plugin-mask'
export default {
// ...
plugins: [
MaskPlugin,
]
}
<TextElement
name="text"
mask="{+1} (000)-000-0000"
/>
<TextElement
name="text"
:mask="{
mask: 'number',
min: -10000,
max: 10000
}"
/>
<TextElement
name="text"
:mask="{
mask: 'range',
from: 1,
to: 90
}"
/>
<TextElement
name="text"
:mask="{
mask: 'enum',
enum: [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December',
],
}"
/>
<TextElement
name="text"
:mask="{
mask: 'VFr',
blocks: {
r: {
repeat: Infinity, // number of times to repeat: Infinity | number | [min, max]
mask: '-000',
}
},
}"
/>
<TextElement
name="text"
:mask="/^[a-fA-F0-9]{0,6}$/"
/>
<TextElement
name="text"
:mask="{
mask: 'date',
pattern: 'd.`m.`Y',
}"
/>
<TextElement
name="text"
:mask="[
{
mask: 'rgb(RGB,RGB,RGB)',
eager: true,
blocks: {
RGB: {
mask: 'range',
from: 0,
to: 255
}
}
},
{
mask: /^#[0-9a-f]{0,6}$/i
}
]"
/>
More info and examples can be found at the official documentation.
v1.0.7
2024-06-14
FAQs
Official input mask plugin for Vueform.
The npm package @vueform/plugin-mask receives a total of 1,669 weekly downloads. As such, @vueform/plugin-mask popularity was classified as popular.
We found that @vueform/plugin-mask demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.