New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apoc-calendar

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apoc-calendar

calendar

0.2.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

apoc-calendar

npm: apoc-calendar CircleCI: nju33/apoc-calendar Coverage Status tested with jest code style: prettier license: mit

Install

yarn add apoc-calendar
npm i apoc-calendar

Usage

HTML

<script src="path/to/apoc-calendar.js></script>
<script>

const calendar = new ApocCalendar({
  target: document.getElementById('calendar'),
  data: {
		head: (year, month) => `${year}.${month}`
		day: day => switch (day) {
			case 0: {
				return '日';
			}
			case 1: {
				return '月';
			}
			// ...
		},
		min: '2018-1-1',
		max: '2020-12-31',
  },
});

</script>

ES

import ApocCalendar from 'apoc-calendar';

const calendar = new ApocCalendar({
  target: document.getElementById('calendar'),
  data: {...},
});

FAQs

Package last updated on 30 Mar 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