year-of-luigi
v1.0.1
Published
Check if is Year of Luigi
Downloads
5
Readme
year-of-luigi
Check if is year of Luigi
Install
$ npm install --save year-of-luigi
Caveat
The Year of Luigi is commonly said to have taken place between February 14, 2013 and March 18, 2014. The precise boundaries are a point of scholarly debate, however. But as of now this module considers any date object between those two dates inclusively (in the current working timezone) to be valid Year of Luigi.
Usage
const yearOfLuigi = require('year-of-luigi');
yearOfLuigi(2013);
// "probably"
yearOfLuigi(2014);
// "maybe"
yearOfLuigi(2015);
// false
yearOfLuigi(new Date("2013-02-14"));
//true
API
yearOfLuigi([year])
Type: number
(year) or Date
Default: new Date()
(now)
License
MIT © haotian Chang
Luigification: MIT © Wyatt Carpenter