Skip to content

Instantly share code, notes, and snippets.

View dbredvick's full-sized avatar

Drew Bredvick dbredvick

View GitHub Profile
@dbredvick
dbredvick / moment-holidays.js
Last active February 10, 2017 20:10 — forked from jrhames/moment-holidays.js
Holidays plugin for Moment.JS
//## Moment.JS Holiday Plugin
//
//Usage:
// Call .holiday() from any moment object. If date is a US Federal Holiday, name of the holiday will be returned.
// Otherwise, return nothing.
//
// Example:
// `moment('12/25/2013').holiday()` will return "Christmas Day"
//
//Holidays: