Skip to content

wyattscarpenter/year-of-luigi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages

  • JavaScript 100.0%