Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storm-calendar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storm-calendar

[![Build Status](https://travis-ci.org/mjbp/storm-calendar.svg?branch=master)](https://travis-ci.org/mjbp/storm-calendar) [![codecov.io](http://codecov.io/github/mjbp/storm-calendar/coverage.svg?branch=master)](http://codecov.io/github/mjbp/storm-calendar

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Storm Calendar

Build Status codecov.io npm version

Small module to display a navigable monthly calendar view across a range of dates

Example

https://mjbp.github.io/storm-calendar

Usage

HTML

<div class="js-calendar" data-start-date="2017-11-30" data-end-date="2018-01-01"></div>

JS

npm i -S storm-calendar

either using es6 import

import Calendar from 'storm-calendar';

Calendar.init('.js-calendar');

asynchronous browser loading (use the .standalone version in the /dist folder) using the global name (Storm + capitalised package name)

import Load from 'storm-load';

Load('{{path}}/storm-calendar.standalone.js')
    .then(() => {
        StormCalendar.init('.js-calendar');
    });

Tests

npm run test

Browser support

This is module has both es6 and es5 distributions. The es6 version should be used in a workflow that transpiles.

The es5 version depends upon Object.assign, element.classList so all evergreen browsers are supported out of the box, ie9+ is supported with polyfills. ie8+ will work with even more polyfills for Array functions and eventListeners.

Dependencies

None

License

MIT

Keywords

FAQs

Package last updated on 10 Jan 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc