Mondays
Mondays is a utility library to cope with Mondays.
Mondays could be hard, this library should ease your way with them.
Getting started
Install the library with npm
> npm install mondays
and import it in your js
var mondays = ;
Docs
Every method defaults to the current date if no argument is provided
mondays.isMonday
Returns a boolean stating if the date provided is a Monday
mondays;
mondays.getNextMonday
Returns a Date object representing the next Mondaym relative to the date provided
mondays;
mondays.getPrevMonday
Returns a Date object representing the previous Monday, relative to the date provided
mondays;
mondays.daysUntilMonday
Returns the number of days until the next Monday, relative to the date provided
mondays;
mondays.daysSinceMonday
Returns the number of days since last Monday, relative to the date provided
mondays;
Changelog
v2.0.0
- upgraded node version (10+)
v1.0.1
- updated dependencies
v1.0.0
- Basic functionality