Installations
npm install vue-datetime-js
Score
70.4
Supply Chain
96.8
Quality
74.1
Maintenance
100
Vulnerability
98.6
License
Releases
Unable to fetch releases
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
10.15.1
NPM Version
6.10.2
Statistics
7 Stars
116 Commits
8 Forks
2 Watching
17 Branches
6 Contributors
Updated on 07 Oct 2024
Languages
Vue (70.56%)
JavaScript (18.87%)
SCSS (9.43%)
CSS (0.81%)
HTML (0.34%)
Total Downloads
Cumulative downloads
Total Downloads
122,537
Last day
-27.9%
75
Compared to previous day
Last week
4.1%
405
Compared to previous week
Last month
-16.9%
1,663
Compared to previous month
Last year
-76.4%
12,275
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
24
vue-datetime-js
See documentation and demo at vue-datetime-js
Installation
npm
1npm install vue-datetime-js --save
webpack.config.js:
1/** 2 * configuration for moment to ignore loading locales 3 */ 4module.exports.plugins = [ 5 //... 6 new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/) 7 //... 8]
Usage
main.js
1//... 2import VueDatetimeJs from 'vue-datetime-js'; 3Vue.component('date-picker', VueDatetimeJs); 4//...
Or in component
1<template> 2 <div> 3 <date-picker v-model="date"></date-picker> 4 </div> 5</template> 6 7<script> 8 import VueDatetimeJs from 'vue-datetime-js' 9 export default { 10 data(){ 11 return { 12 date: '' 13 } 14 }, 15 components: { 16 datePicker: VueDatetimeJs 17 } 18 } 19</script>
You can also set default values:
main.js
1import VueDatetimeJs from 'vue-datetime-js'; 2Vue.use(VuePersianDatetimePicker, { 3 name: 'custom-date-picker', 4 props: { 5 inputFormat: 'YYYY-MM-DD HH:mm', 6 format: 'jYYYY-jMM-jDD HH:mm', 7 editable: false, 8 inputClass: 'form-control my-custom-class-name', 9 placeholder: 'Please select a date', 10 altFormat: 'YYYY-MM-DD HH:mm', 11 color: '#00acc1', 12 autoSubmit: false, 13 //... 14 //... And whatever you want to set as default 15 //... 16 } 17});
Then use in component
1<custom-date-picker v-model="date"></custom-date-picker>
Built With
- Vuejs - The Progressive JavaScript Framework.
- Moment.js - Parse, validate, manipulate, and display dates and times in JavaScript.
- moment-jalaali - A Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.
- moment-hijri - A Hijri calendar (Based on Umm al-Qura calculations) plugin for moment.js.
- vue-persian-datetime-picker - A vue plugin to select jalali date and time.
License
This project is licensed under the MIT License
Change log
1.2.2 (2019-12-04)
- Fix build and ReadMe
1.2.1 (2019-12-02)
- Fix sample page vue
1.2.0 (2019-12-02)
- Add calendar (gregory, jalali, hijri)
1.1.0 (2019-12-01)
- Remove localeLange
- Add Hijri calendar
- Fix (Hijri ('ar-sa') - Jalalli ('fa') - Gregory ('en'))
1.0.4 (2019-11-28)
- Some Test
1.0.3 (2019-11-28)
- Add localeLange Prop
1.0.2 (2019-11-28)
- Some Test
1.0.1 (2019-11-28)
- Fix Readme file
1.0.0 (2019-11-28)
- Fork from vue-persian-datetime-picker
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Reason
50 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-vfrc-7r7c-w9mx
- Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr
- Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg
- Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546
- Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5
- Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp
- Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq
- Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr
- Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765
- Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-c9g6-9335-x697
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-5j4c-8p2g-v4jx
- Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-cf66-xwfp-gvc4
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
1.3
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to vue-datetime-js
vue-datetime
Mobile friendly datetime picker for Vue. Supports date, datetime and time modes, i18n and disabling dates.
flatpickr
A lightweight, powerful javascript datetime picker
react-datetime
A lightweight but complete datetime picker React.js component
react-native-modal-datetime-picker
A react-native datetime-picker for Android and iOS