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 🙏

© 2025 – Pkg Stats / Ryan Hefner

angular-tiny-calendar

v1.0.1

Published

Tiny calendar for angularJS with event support

Readme

[this isn't by me, i just created a package.json added it to the npm repo for convenience, everything is a direct copy of the original code on github]

AngularJS Tiny Calendar

A (very) small calendar directive, which can also handle events

Tiny Calendar

Demo

Live demo.

Installation

Dependencies

The Tiny Calendar requires:

  • AngularJs 1.2.8+
  • Moment.js
  • Moment-range.js

Bower

Install it via Bower

bower install --save angular-tiny-calendar

include tiny-calendar.min.js and tiny-calendar.min.css into your project

<!-- Include css reference inside the <head> tag-->
<head>
<!-- ... -->
	<link rel="stylesheet" href="bower_components/angular-tiny-calendar/tiny-calendar.min.css">
</head>
<!-- Load the scrips at the end of the body -->
<!-- AngularJs and Moment.js are required -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.1/moment.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment-range/2.1.0/moment-range.min.js"></script>

<!-- ... -->
<!-- Include js reference -->
<script type="text/javascript" src="bower_components/angular-tiny-calendar/tiny-calendar.min.js"></script>

add angular-tiny-calendar as a module dependency for your app.

angular.module('myApp', ['angular-tiny-calendar']);

Usage

Simply add a tiny-calendar attribute to a <div> tag (or any container)

<div tiny-calendar></div>

Options

Tiny Calendar accepts 4 parameters:

first-day (number)

first-day is used to set the first day of the week (default is 0 - Sunday).

<!-- This will set the first day on Monday -->
<div tiny-calendar first-day="1"></div>

week-days (string)

week-days is used to customize the labels of the days (remember to start with Sunday even if first-day is set)

<div tiny-calendar week-days="DLMMGVS"></div>

today (string)

today sets the label for the today button

<div tiny-calendar today="oggi"></div>

events (object)

The events argument must be passed an array of objects, each one including:

  • title - Required. The title of the event.
  • startDate- Required. The date of the event.
  • endDate - Optional. The end date of the event.
  • time - Optional. The day schedule of the event. If this is omitted the event will be considered "all day long"
events: [
  {
    "title": "Today Event",
    "startDate": "2016-01-19T22:45:15.739Z",
    "endDate": null,
    "time": "21:00"
  },
  {
    "title": "Tomorrow",
    "startDate": "2016-01-20T22:45:15.739Z",
    "endDate": null,
    "time": "17:15"
  },
  {
    "title": "All-day event",
    "startDate": "2016-01-22T22:45:15.739Z",
    "endDate": null
  },
  {
    "title": "Two in one day!",
    "startDate": "2016-01-22T22:45:15.739Z",
    "endDate": null,
    "time": "09:00"
  },
  {
    "title": "Three in one day!",
    "startDate": "2016-01-22T22:45:15.739Z",
    "endDate": null,
    "time": "15:00"
  },
  {
    "title": "Multi-day event",
    "startDate": "2016-01-26T22:45:15.739Z",
    "endDate": "2016-01-27T22:45:15.739Z"
  }
]

License

This sowftware is licensed under the MIT license