is-christmas-period
Identify whether the current or given date is about Christmas period.
Install
npm install -g is-christmas-period
Use
1. Load the module
var isChristmasPeriod = ;
2. Check if current date is about Christmas period
console; // true or false
Other Examples
20th of December is about Christmas period
var twentiethOfDecember = ;twentiethOfDecember;twentiethOfDecember; ; // true
8th of February is not about Christmas period
var eightthOfFebruary = ;eightthOfFebruary;eightthOfFebruary; ; // false
Test
To execute tests, first install the project dependencies:
$ npm install
Then, run the tests
$ npm test
Credits
Many thanks to EditThisCookie Chrome extension.