leap-year Check if a year is a leap year Install $ npm install --save leap-year Usage var leapYear = require('leap-year'); leapYear(2014); //=> false leapYear(2016); //=> true API leapYear([year]) year Type: number Default: current year leapYear([date]) date Type: date Default: new Date() License MIT © Sindre Sorhus