You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

calendar-dates

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendar-dates

Get calendar dates for a given month - Mostly for creating a custom calendar control

0.0.7
Source
npmnpm
Version published
Weekly downloads
2.8K
9.15%
Maintainers
1
Weekly downloads
 
Created
Source

What is this?

Get a list of calendar dates.
This is to be used mainly for Calendar control developers.

This library is not yet tested.
Very Alpha-ish release.
I will be adding some tests while learning Jest later on.

Installation

npm i calendar-dates
# or
yarn add calendar-dates

How to use this

const CalendarDates = require("calendar-dates");
const calendarDates = new CalendarDates();

const l = console.log;

// const dates = calendarDates.getDates(new Date());
l(calendarDates.getDates(new Date()).join(","));
l(calendarDates.getDates(new Date(2018, 2)).join(","));
Result
dance2die@CC c:\misc\sources\throwaway\calendartest
> node index.js
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12
25,26,27,28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7

Keywords

calendar

FAQs

Package last updated on 15 Apr 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