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.
quark-input
Advanced tools
一款可配置 的 input 组件
<input-box :type="'tel'" :name="'user'">账号:</input-box>
<input-box :reg="`^[0-9]`" :name="'user'">账号:</input-box>
可以修改 input 的样式
修改外面盒子的包边
email 邮箱 /^(?:[a-z0-9]+[_-+.]+)[a-z0-9]+@(?:([a-z0-9]+-?)[a-z0-9]+.)+([a-z]{2,})+$/
tel 手机 /^(+86)?\s?0?(13|14|15|18|17)[0-9]{9}$/
post 邮政编码 /^\d{6}$/
cn 中文字符 /[\u4e00-\u9fa5]/
idcard 身份证 /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/
user 用户名 (15个中文|字符) ^[\u0026\u0023\u0031\u0038\u0033\u003b\u002e\u2022a-zA-Z\u4e00-\u9fa5]{1,15}$
ip ip地址 /(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d).(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)/
例子 验证手机
<input-box :ruleName="'tel'" :type="'number'" @val="nameFun" :name="'user'">账号:</input-box>
name='delete-icon' 删除图片替换 name='normal-icon' 右侧显示图片 ,我在密码模式下提供了一个图片,其实在什么模式下都可以显示,可以根据自己需要替换
FAQs
一款可配置 的 input 组件
The npm package quark-input receives a total of 1 weekly downloads. As such, quark-input popularity was classified as not popular.
We found that quark-input 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.
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.