Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/hc200ok/vue-easy-range-date-picker
A simple and easy-to-use range date picker based on Vue2
npm install --save vue-easy-range-date-picker
<template>
<RangeDatePicker v-model="dates"/>
</template>
<script>
import RangeDatePicker from 'vue-easy-range-date-picker';
export default {
components: {
RangeDatePicker,
},
data() {
return {
dates: {
start: 1572879600000,
end: 1575730800000
},
};
},
}
</script>
Props | Type | Required | Default |
---|---|---|---|
v-model(1) | Object | yes | null |
language(2) | String | no | 'zh' |
colorToday(3) | String | no | '#41b883' |
colorSelected(3) | String | no | '#34495e' |
colorActive(3) | String | no | '#41b883' |
(1) v-model: Binding an object which contains start timestamp and end timestamp:
// example
dates: {
start: 1573052400000,
end: 1574434800000
}
you can also pass an empty object as the default value like this:
<template>
<RangeDatePicker v-model="dates"/>
</template>
<script>
import RangeDatePicker from 'vue-easy-range-date-picker';
export default {
components: {
RangeDatePicker,
},
data() {
return {
dates: {},
};
},
}
</script>
(2) Now supporting Chinese('zh'), Japanese('jp'), English('en')
(3)
closePicker
event will be emitted when both the start date and end date are selected.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
FAQs
Unknown package
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.