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.
hsy-vue-datepicker
Advanced tools
This is yet another vue datepicker component.
Use npm to download code:
npm install hsy-vue-datepicker -S
then import it into your project, add below code into your main.js
:
import Datepicker from 'hsy-vue-datepicker'
Vue.use(Datepicker)
It supports single date mode, you just need to bind your date with v-model
:
<template>
<div class="demo">
<datepicker v-model="value"></datepicker>
</div>
</template>
<script>
export default {
data() {
return {
value: ['2017-02-01']
}
}
}
</script>
also, there is a date-range mode, you just need to specify the mode with prop mode
:
<template>
<div class="demo">
<datepicker v-model="value" mode="daterange"></datepicker>
</div>
</template>
<script>
export default {
data() {
return {
value: ['2017-02-01', '2017-02-05']
}
}
}
</script>
it contains a hot-realod example for your preview or dev, run it follow:
$ cd your-clone-dir
$ npm install
$ npm run dev
Prop | Description | Type | Accepted Values | Default |
---|---|---|---|---|
value | dates to be manipulated | String/Moment/Date/Array of former | -- | moment() |
mode | mode of picker | String | date/daterange | date |
cssClass | css class to be appended to component $el | String | -- | -- |
placeholder | placeholder | String | -- | -- |
cbDate0Error | callback for error input from user of begin date | -- | -- | |
cbDate1Error | callback for error input from user of end date | -- | -- | |
cbCancelClicked | callback for cancel button clicked | -- | -- | -- |
FAQs
vue datepicker component
The npm package hsy-vue-datepicker receives a total of 0 weekly downloads. As such, hsy-vue-datepicker popularity was classified as not popular.
We found that hsy-vue-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.