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.
vue2-datepicker
Advanced tools
A Datepicker Component For Vue2
https://mengxiong10.github.io/vue2-datepicker/
$ npm install vue2-datepicker --save
<script>
import DatePicker from 'vue2-datepicker'
export default {
components: { DatePicker },
data() {
return {
time1: '',
time2: '',
shortcuts: [
{
text: 'Today',
start: new Date(),
end: new Date()
}
]
}
}
}
</script>
<template>
<div>
<date-picker v-model="time1" :first-day-of-week="1"></date-picker>
<date-picker v-model="time2" range :shortcuts="shortcuts"></date-picker>
</div>
</template>
Prop | Type | Default | Description |
---|---|---|---|
range | Boolean | false | if true, the type is daterange |
format | String | yyyy-MM-dd | Date formatting string |
lang | String | zh | Translation (en/zh/es/pt-br/fr) |
placeholder | String | input placeholder text | |
width | String/Number | 210 | input size |
disabled-days | Array | [] | Days in YYYY-MM-DD format to disable |
not-before | String | '' | Disable all dates before date in YYY-MM-DD format |
not-after | String | '' | Disable all dates after date in YYY-MM-DD format |
shortcuts | Boolean/Array | true | the shortcuts for the range picker |
first-day-of-week | Number | 7 | set the first day of week (1-7) |
Prop | Type | Description |
---|---|---|
text | String | Text |
start | Date | Start Date |
end | Date | End Date |
FAQs
A Datepicker Component For Vue2
The npm package vue2-datepicker receives a total of 69,597 weekly downloads. As such, vue2-datepicker popularity was classified as popular.
We found that vue2-datepicker 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.