npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-calendar-easy

v0.2.6

Published

A easy to use calendar component

Readme

vue-calendar-easy

install

npm install vue-calendar-easy --save

Usage

<template>
  <vue-calendar v-model="value" />
</template>

<script>
import VueCalendar from 'vue-calendar-easy'

export default {
  components: {
    VueCalendar
  },
  data () {
    return {
      value: null // Default selected date
    }
  }
}
</script>

Options

Props

| Props | Type | Default | Description | | ------ | ------ | ------ | ------ | | value | Date | null | Default selected date | | daterange | Boolean | null | Optional date range | | begin_date.sync | Date | null | When :daterange="true" is true, default start date | | end_date.sync | Date | null | When :daterange="true" is true, default end date | | lazy | Boolean | true | When :daterange="true" is true, allow lazy loading | | one_calendar | Boolean | false | When :daterange="true" is true, display a single calendar | | separator | String | ~ | Separator symbol | | defaultNextMonth | Boolean | true | In multi-calendar mode, true shows the current month and next month, false shows last month and current month | | picker | String | date | Calendar type, "date" / "month" / "year" | | years | Number | 20 | Year range | | year_start | Number | 2000 | Start year | | rules | Array< String > | [] | Built-in filtering method, optional value please see below. | | custom_filter | Function | - | Please see below. | | mark_today | Boolean | true | Mark today | | calendar_width | String | '300px' | Calendar width | | calendar_height | String | '250px' | Calenfar height | | header_height | String | '40px' | Header height | | no_border | Boolean | false | Display border | | format | String | yyyy-MM-dd | Get formatted value |

/*
 * @param date  日期
 * @param type  日历类型 [date, month, year]
 * @param index 索引 (默认为0,当 daterange 时为 0 或 1)
 */
function custom_filter (date, type, index) {
  // 返回 true 则禁用
  return Boolean
}

const rules = [
  'fromToday', // 从今天起(包含今天)
  'fromTomorrow', // 从明天起(不包含今天)
  'untilToday', // 直至今天(包含今天)
  'untilTomorrow', // 直至明天(不包含今天)
  'unableSun', // 禁用周日
  'unableMon', // 禁用周一
  'unableTues', // 禁用周二
  'unableWed', // 禁用周三
  'unableThur', // 禁用周四
  'unableFri', // 禁用周五
  'unableSat' // 禁用周六
]

event

| event | Description | Callback Arguments | | ------ | ------ | ------ | | complete | Callback when the date changes | date(type: object) / date_range(type: object), format_date(type: string) |

slot

| slot | Description | Slot variables | | ------ | ------ | ------ | | default | Custom Calendar | in_range< Boolean >, year < Number >, month < Number >, day < Number > | | month | Custom Month Calendar | year < Number >, month < Number > | | year | Custom Year Calendar | year < Number > |