Skip to content

oreshinya/calendar-pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar Pager

npm version Build Status

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

About

Calendar dates getter.

Resources

License

Stars

Watchers

Forks

Packages

No packages published