calendar-pager
v1.0.1
Published
Calendar dates getter.
Downloads
3
Readme
Calendar Pager
Utility for getting calendar dates with moment.
Dependencies
moment
moment-range
Installation
$ npm i --save calendar-pager
Usage
import calendar from 'calendar-pager';
// Get calendar dates of this month.
const {
current, // start of month
range, // moment-range
prev, // start of prev month
next // start of next month
} = calendar();
// Get calendar dates of prev month.
const prevPayload = calendar(prev);
// Get calendar dates of next month.
const nextPayload = calendar(next);
// Get calendar starting with Monday.
const payload = calendar(next, true);
LICENSE
MIT