{"_id":"moment-holiday","_rev":"21-7663744f761ce49ad4b5c076df2008f4","name":"moment-holiday","description":"A Moment.js plugin for handling holidays.","dist-tags":{"latest":"1.5.1"},"versions":{"0.0.1-alpha.0":{"name":"moment-holiday","version":"0.0.1-alpha.0","description":"Methods to work with holidays in moment.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"pretest":"npm run compile","test":"mocha -c **/*.spec.js","compile":"rimraf dist && tsc","prepublish":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/darrinholst/moment-holiday.git"},"keywords":["moment","momentjs","moment.js","holiday"],"author":{"name":"Darrin Holst","email":"darrinholst@gmail.com"},"license":"MIT","homepage":"https://github.com/darrinholst/moment-holiday","bugs":{"url":"https://github.com/darrinholst/moment-holiday/issues"},"devDependencies":{"@types/chai":"^4.0.0","@types/mocha":"^2.2.41","chai":"^4.0.2","mocha":"^3.4.2","moment":"^2.18.1","rimraf":"^2.6.1","typescript":"^2.3.4"},"peerDependencies":{"moment":"^2.18.1"},"gitHead":"1e86053452f4fa4f4be56c36677deef7bec3ea88","_id":"moment-holiday@0.0.1-alpha.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"darrinholst","email":"darrinholst@gmail.com"},"dist":{"integrity":"sha512-TwJ/J6VaRwPyaWyVvHRTfROVz1ophYeCBTOU/7Oh+ERs0wU5vAdWXld87vb5N0kDeJBSI8SK7LVFXW2FmzgSvg==","shasum":"873a08d183e1f854738e2419e68b16147dfba515","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-0.0.1-alpha.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcY6jf9P5jkl8Y6SHhtH6Y9HDqbGY9iquM2YHU31D0NAiEAvjiC5+bAI3bjQLG0gzkQCvxweuSvr3v967aANMOfpkE="}]},"maintainers":[{"name":"darrinholst","email":"darrinholst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-0.0.1-alpha.0.tgz_1498179231003_0.1010344868991524"},"directories":{}},"0.0.1-beta.0":{"name":"moment-holiday","version":"0.0.1-beta.0","description":"Methods to work with holidays in moment.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"pretest":"npm run compile","test":"mocha -c **/*.spec.js","compile":"rimraf dist && tsc","prepublish":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/darrinholst/moment-holiday.git"},"keywords":["moment","momentjs","moment.js","holiday"],"author":{"name":"Darrin Holst","email":"darrinholst@gmail.com"},"license":"MIT","homepage":"https://github.com/darrinholst/moment-holiday","bugs":{"url":"https://github.com/darrinholst/moment-holiday/issues"},"devDependencies":{"@types/chai":"^4.0.1","@types/mocha":"^2.2.41","chai":"^4.0.2","mocha":"^3.4.2","moment":"^2.18.1","rimraf":"^2.6.1","typescript":"^2.4.1"},"peerDependencies":{"moment":"^2.18.1"},"dependencies":{"release-it":"^2.8.0"},"gitHead":"b911c6442569ab6c82b7438a3571c1370e66bd99","_id":"moment-holiday@0.0.1-beta.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"darrinholst","email":"darrinholst@gmail.com"},"dist":{"integrity":"sha512-jI5y7UJfkv/jk2ZIUghqk18vZM1q5hWCkIHak12HBze/7rOzhCYonU8OJfwMByCnhfKwlL3d6SyDzA6PQAaa8Q==","shasum":"a4c02d16eb1a8bee665695b51be845877e33ef65","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-0.0.1-beta.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1pwOuMrVi7dEQbEyW3ajy3joTjWN7oMKHMof/iw3lGwIgbL7Thla/rE7ZJp9bMgm2ZsZzqZiBB7YgqyHBrr64Yzc="}]},"maintainers":[{"name":"darrinholst","email":"darrinholst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-0.0.1-beta.0.tgz_1499012628396_0.5444165139924735"},"directories":{}},"0.0.1-beta.1":{"name":"moment-holiday","version":"0.0.1-beta.1","description":"Methods to work with holidays in moment.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"pretest":"npm run compile","test":"mocha -c **/*.spec.js","compile":"rimraf dist && tsc","prepublish":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/darrinholst/moment-holiday.git"},"keywords":["moment","momentjs","moment.js","holiday"],"author":{"name":"Darrin Holst","email":"darrinholst@gmail.com"},"license":"MIT","homepage":"https://github.com/darrinholst/moment-holiday","bugs":{"url":"https://github.com/darrinholst/moment-holiday/issues"},"devDependencies":{"@types/chai":"^4.0.1","@types/mocha":"^2.2.41","chai":"^4.0.2","mocha":"^3.4.2","moment":"^2.18.1","release-it":"^2.8.0","rimraf":"^2.6.1","typescript":"^2.4.1"},"peerDependencies":{"moment":"^2.18.1"},"gitHead":"1e0018fa8e5adc83760fa2257bef964135cb5ed7","_id":"moment-holiday@0.0.1-beta.1","_npmVersion":"5.0.4","_nodeVersion":"8.1.3","_npmUser":{"name":"darrinholst","email":"darrinholst@gmail.com"},"dist":{"integrity":"sha512-PsbdsaSgnPSbDyBFtsacfc3C3UMPrY7OYI1D+6OXPYRUTC4pCL7s9vwXhNDUiUtE6pa3I3BZmOY95PLDsMaOBw==","shasum":"a9980e69e81c172eba35becc9542fb94b8ae0723","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-0.0.1-beta.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpLKu5Pe68/JjS7YKAdSmkSTC8XKi7Vmf0VJxXYWYQcAiEApKpnxc4H4dWMmrRrCXPvFd87AoxPkZrQXX6ZuJ3JOSc="}]},"maintainers":[{"name":"darrinholst","email":"darrinholst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-0.0.1-beta.1.tgz_1499289806500_0.6433303346857429"},"directories":{}},"0.0.1-beta.2":{"name":"moment-holiday","version":"0.0.1-beta.2","description":"Methods to work with holidays in moment.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"lint":"tslint **/*.ts","pretest":"npm run compile","test":"mocha -c **/*.spec.js","compile":"rimraf dist && tsc","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/darrinholst/moment-holiday.git"},"keywords":["moment","momentjs","moment.js","holiday","holidays"],"author":{"name":"Darrin Holst","email":"darrinholst@gmail.com"},"license":"MIT","homepage":"https://github.com/darrinholst/moment-holiday","bugs":{"url":"https://github.com/darrinholst/moment-holiday/issues"},"devDependencies":{"@types/chai":"^4.0.1","@types/mocha":"^2.2.41","chai":"^4.0.2","mocha":"^3.4.2","moment":"^2.18.1","prettier":"^1.5.3","release-it":"^2.8.0","rimraf":"^2.6.1","tslint":"^5.5.0","typescript":"^2.4.1"},"peerDependencies":{"moment":"^2.18.1"},"gitHead":"9d5dd9f3c6ecfe4d9359697ef7a04e8d93cbd80a","_id":"moment-holiday@0.0.1-beta.2","_npmVersion":"5.2.0","_nodeVersion":"8.1.4","_npmUser":{"name":"darrinholst","email":"darrinholst@gmail.com"},"dist":{"integrity":"sha512-yz+3N3a/fC31d60Oi1EGiWN9ke/4lentM3+8Xr+iqlhMaURKkfSoesM50Pb5nIijV3hpX3Y3+QtYDY+9B656yA==","shasum":"b65b54a68226ad59849c7faf78dfdc2eb7bf90ee","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-0.0.1-beta.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHC5xLJ8eY3dopriuLH1f9PTctvNVJfQ9du+mWf+xbDKAiB8qCrmVodRGyArDlcxI8NVFAAiDR7ukuG0liPzm9mHSA=="}]},"maintainers":[{"name":"darrinholst","email":"darrinholst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-0.0.1-beta.2.tgz_1500218431323_0.17770677898079157"},"directories":{}},"1.0.0":{"name":"moment-holiday","version":"1.0.0","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0"},"scripts":{"test":"ava"},"gitHead":"9f92931b42ae13533683eda10be79b793dd92e39","_id":"moment-holiday@1.0.0","_shasum":"47297b904b39d6c836fc0c96c81faf5376abbcf3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"47297b904b39d6c836fc0c96c81faf5376abbcf3","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.0.0.tgz","integrity":"sha512-iMDGb1lSYBfpVf5nkRBknX+/ORKxZqcSnPyOB06zahy/TA1CmO2wE0BQDwG+SA7aTCLe8ZYKROf0DIdRg3vf8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFbPAmig5/tR4TFiZ/u1C5zsPHkLFfhV5XzLwMEK8pTAiEAs3JfESD6XMf+4gVi3bcsPBV/aAFhjBlog7zQyd9BpBg="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.0.0.tgz_1500237271607_0.7025261200033128"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.1.0":{"name":"moment-holiday","version":"1.1.0","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0"},"scripts":{"test":"ava"},"gitHead":"2950684470cf97cd24690c3863feb4abbbad51fb","_id":"moment-holiday@1.1.0","_shasum":"b868f16205486ee6f821c678a623110ff036e4a1","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"b868f16205486ee6f821c678a623110ff036e4a1","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.1.0.tgz","integrity":"sha512-bJkzT7ldnQnSgGmyzaaMmc7Y+6pXEFKwJmMSxsMw/vb1hLyJNuVNkdtq1YktBKXbwWqZ3ad2SA1xNaTnrh49BQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLgmDa/pIxxDHG1L9kPcDlH0QCDANRnqIsGMRJfpQjQwIhAJwJ79l+++/MslYImUipZiuN9QSzZrPygTbIbQCNsnMD"}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.1.0.tgz_1500317198342_0.8824775130487978"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.1.1":{"name":"moment-holiday","version":"1.1.1","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0"},"scripts":{"test":"ava"},"gitHead":"376f7fa58ab588aa385b2ba5d488608c75cfb549","_id":"moment-holiday@1.1.1","_shasum":"b9126e7e872eef3aa780719236751928483f9ecc","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"b9126e7e872eef3aa780719236751928483f9ecc","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.1.1.tgz","integrity":"sha512-oKVQpG7eg35LU7vhwBqHwFO+CSA8z1H7Qto3J2gCvQMirlRaCRDMopN8N1CsPJPEIqN4fC94ng1x7iMnDatXQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAn3yiHCcJOmleYoo+cH2yx0L9EfSMG0DsZhbitm+SpSAiEAiAcgqKv6OiEmow595FwBWYlTrMvPbX79JpItKbmBb7o="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.1.1.tgz_1500317759011_0.8501537549309433"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.2.0":{"name":"moment-holiday","version":"1.2.0","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0"},"scripts":{"test":"ava"},"gitHead":"e9fa7b55d4e6d7fa17c26c3c44d62c323c4f2654","_id":"moment-holiday@1.2.0","_shasum":"8da4aec14d1b0a56f7c1ccb1d95c7b9064f8f7c2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"8da4aec14d1b0a56f7c1ccb1d95c7b9064f8f7c2","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.2.0.tgz","integrity":"sha512-HD2jK3qBRv4R4L8lb690Dk4CV/h8+hrkP2NjalT3Z0QSXNP/z3aVRvFoM3rNfgdYlg94Vx3tzm1vueotdBsfGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUsL+rZBhYCK9jBRTWGOxZFipi/+pn9x2Tk+MlG0rGbAiALT7ofO9Vqv7rrS42BW1KovO05nE4hdTZqW5aGivcamw=="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.2.0.tgz_1500331985250_0.33870630129240453"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.3.0":{"name":"moment-holiday","version":"1.3.0","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","files":["locale/"],"dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0","jshint":">=2.9.1"},"scripts":{"test":"jshint *.js **/*.js && ava"},"gitHead":"a4b356fe874aa6d793b2346e6c6ea615781f0022","_id":"moment-holiday@1.3.0","_shasum":"401dc527c596f4addf9c1b7f03ad090e4798b8ba","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"401dc527c596f4addf9c1b7f03ad090e4798b8ba","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.3.0.tgz","integrity":"sha512-IUwXtDUGVknEc7QhmFwsfYZl0l54tXRoYUzZcso1FD/OLYxhf3ifQE2J6v21ulrcDNk+I4B7VrHv/0VTGsB1ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfXja/y9LZyBMDWdSQlPXzvVcLoZr6jgmPGG5JS9D0tAiAGw4/3eTV4t9ohbS5PDggPYwh358oTMgIHhTalGWORJg=="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.3.0.tgz_1500500442930_0.04287654277868569"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.3.1":{"name":"moment-holiday","version":"1.3.1","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","files":["locale/"],"dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0","jshint":">=2.9.1"},"scripts":{"test":"jshint *.js **/*.js && ava"},"gitHead":"c6a2f5245896054dbebe60f9e3003116fa6d1ada","_id":"moment-holiday@1.3.1","_shasum":"50168dd6b7715f11dd8b6f62ed3959422c186280","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"50168dd6b7715f11dd8b6f62ed3959422c186280","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.3.1.tgz","integrity":"sha512-O5FSbHCejMTRcacNN3UKXHNCb84/dus77pCiENScCv4cshjbgr7zL1GNaT0ds4rgC8hcshZX74RC6YNxayvSPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcpjPkH1rFLXjL/udmpYomotDbISfsgwFEsQsu9Tr7ngIgVthqekLEDlvqGc2t6ZQjGUwkACPsaztvElVlAsGc+gI="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.3.1.tgz_1500503104330_0.5847782045602798"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.4.0":{"name":"moment-holiday","version":"1.4.0","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","files":["locale/"],"dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0","jshint":">=2.9.1"},"scripts":{"test":"jshint *.js **/*.js && ava"},"gitHead":"535299fbb3fa94a94e872a3730bb2359398f3a42","_id":"moment-holiday@1.4.0","_shasum":"cdb832a263f48a3e2e6b63ae363b5945d2ff09c3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"cdb832a263f48a3e2e6b63ae363b5945d2ff09c3","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.4.0.tgz","integrity":"sha512-98QObWKeS2jnSg8hOIaIMlBnemp4NsLkSB58eCEnAErXjcQ6ZpfpDAw3RfAEP/+aEGmjIAKDlkoHIbPIyXDybA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBjea1QJ7wSiAuZtP50qY+O/gwBhn18I9TFTNr8NxdtAiEA8EnY0sevUJQAWuhzeJfGPl4KMww9DuEGIyjbjranGTY="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.4.0.tgz_1500933336957_0.30448775086551905"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.4.1":{"name":"moment-holiday","version":"1.4.1","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","files":["locale/"],"dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0","jshint":">=2.9.1"},"scripts":{"test":"jshint *.js **/*.js && ava"},"gitHead":"58d825b0786ca344cdbd61ec930edb8c3d193f10","_id":"moment-holiday@1.4.1","_shasum":"fb21e6daf6d2922d87af11f0aa1ac366a1decd24","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"fb21e6daf6d2922d87af11f0aa1ac366a1decd24","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.4.1.tgz","integrity":"sha512-JfgIcTYi3OzbxR/vs3VEVSJGpGxBAIwhsUeDdsaDnY9altsdVV8Xo8zjN9nP7ylio+EDXIy5sB6C/2XHxS++jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDym0YBLwwMBLkDId0mZTX8VBtms+LunasDvGpIrfbL6QIgLkDdR7riDAg/xsRedeZahstXtWEExnQuZOLyrkfyINs="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.4.1.tgz_1500934533979_0.4907414105255157"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.4.2":{"name":"moment-holiday","version":"1.4.2","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation","united states","us","canada","croatia","hrvatska","easter","finland","germany"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"moment-holiday.js","files":["locale/"],"dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0","jshint":">=2.9.1"},"scripts":{"test":"jshint *.js **/*.js && ava"},"gitHead":"9291423b77f96426c81b4e32669155d0f5350f9c","_id":"moment-holiday@1.4.2","_shasum":"dd242ba04a9b939058701d2551b73981351bd211","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"dd242ba04a9b939058701d2551b73981351bd211","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.4.2.tgz","integrity":"sha512-fyRB2lzUPnYUatcpC1xzcAzVXvEFpTFGjI73hfwFAd+LuIlbbU65/GPPik/c3QA1ptigkoIa0UmekaQ0D84gIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHublCvgJglHFLyNCuNkMdjatAkohNzbJt0ts/JrrN/PAiEArG39Aqp3F6EdBO5L2YAL+XuR4cw0g2/Es+UxImwcA8g="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.4.2.tgz_1501096723200_0.5648082310799509"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.5.0":{"name":"moment-holiday","version":"1.5.0","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation","united states","us","canada","croatia","denmark","hrvatska","india","easter","finland","germany"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"./build/moment-holiday-us.min.js","files":["build/","locale/"],"dependencies":{"moment":">=2.0.0","xo":"^0.18.2"},"devDependencies":{"ava":">=0.10.0","gulp":">=3.0.0","gulp-concat":">=2.0.0","gulp-if":">=2.0.0","gulp-inject-string":">=1.0.0","gulp-rename":">=1.0.0","gulp-sourcemaps":">=2.0.0","gulp-uglify":">=3.0.0","jshint":">=2.9.1","yargs":">=8.0.0"},"scripts":{"test":"jshint *.js locale/*.js && ava"},"gitHead":"24dc92f26ef49510c0751f64a0895c486539b990","_id":"moment-holiday@1.5.0","_shasum":"96f7772aa8ee9be8128c3c72e8feaf4a80adc26f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"96f7772aa8ee9be8128c3c72e8feaf4a80adc26f","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.5.0.tgz","integrity":"sha512-loS0D7QB2cVsBp193B9CEUGyv64zKv97erVm2s41eHShAPdPgY/qTMq9xYHcf1PaynFGQCSuxjILBPZiKwy0HA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB03I/CM91G60KsQXLwN+bfAyyeQhKiUY/0852FUyrVcAiEAuSDoEY3tYWEvOFseuLFYDUJ1kqOp3nwt8dpuM9ZPDCU="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.5.0.tgz_1501800825593_0.019064278108999133"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."},"1.5.1":{"name":"moment-holiday","version":"1.5.1","description":"A Moment.js plugin for handling holidays.","keywords":["moment","momentjs","holiday","holidays","calculation","united states","us","canada","croatia","denmark","hrvatska","india","easter","finland","germany"],"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"homepage":"https://github.com/kodie/moment-holiday","license":"MIT","main":"./build/moment-holiday-us.min.js","files":["build/","locale/"],"dependencies":{"moment":">=2.0.0"},"devDependencies":{"ava":">=0.10.0","gulp":">=3.0.0","gulp-concat":">=2.0.0","gulp-if":">=2.0.0","gulp-inject-string":">=1.0.0","gulp-rename":">=1.0.0","gulp-sourcemaps":">=2.0.0","gulp-uglify":">=3.0.0","jshint":">=2.9.1","yargs":">=8.0.0"},"scripts":{"test":"jshint *.js locale/*.js && ava"},"gitHead":"6ae1d68f513ae14fcf65dd80544c35f70a5f7e90","_id":"moment-holiday@1.5.1","_shasum":"b37939c52b919b02ff142d754037ee776cd40547","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"kodie","email":"kodie.grantham@gmail.com"},"dist":{"shasum":"b37939c52b919b02ff142d754037ee776cd40547","tarball":"https://registry.npmjs.org/moment-holiday/-/moment-holiday-1.5.1.tgz","integrity":"sha512-BzXuOj3TBnNYmPgQB5X59VhLMAOcgCQbQ4h/ZF9i0g0AAeN9k/M8cU9/IYjLVPaLZNlhkPXRGlhR0k4yc1pCjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5B+H5k7TeFpWM0l/0w8x69MSVTMF7kisMVZiot8lRVAIgf61YAtzjNHVEfYcpCo5ScTABHJKMWkOYIRQK0Wyy2po="}]},"maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/moment-holiday-1.5.1.tgz_1501801384851_0.35816629813052714"},"directories":{},"deprecated":"Since Moment.js is being deprecated, it only makes sense to deprecate moment-holiday as well."}},"readme":"# moment-holiday\n[![npm package version](https://img.shields.io/npm/v/moment-holiday.svg?style=flat-square)](https://www.npmjs.com/package/moment-holiday) [![Travis build status](https://img.shields.io/travis/kodie/moment-holiday.svg?style=flat-square)](https://travis-ci.org/kodie/moment-holiday) [![npm package downloads](https://img.shields.io/npm/dt/moment-holiday.svg?style=flat-square)](https://www.npmjs.com/package/moment-holiday) [![build/moment-holiday.min.js file size](https://img.shields.io/github/size/kodie/moment-holiday/build/moment-holiday.min.js.svg?style=flat-square)](build/moment-holiday.min.js) [![license](https://img.shields.io/github/license/kodie/moment-holiday.svg?style=flat-square)](LICENSE.md)\n\nA [Moment.js](https://github.com/moment/moment) plugin for handling holidays.\n\n## Table of Contents\n* [Requirements](#requirements)\n* [Installation](#installation)\n  * [Node.js](#nodejs)\n  * [Browser](#browser)\n  * [Bower](#bower)\n* [Building](#building)\n  * [Custom Builds](#custom-builds)\n* [Functions](#functions)\n  * [holiday](#holiday)\n  * [isHoliday](#isholiday)\n  * [previousHoliday](#previousholiday)\n  * [nextHoliday](#nextholiday)\n  * [holidaysBetween](#holidaysbetween)\n* [The Holidays](#the-holidays)\n  * [Available Locales/Regions](#available-localesregions)\n  * [Modifying Holidays](#modifying-holidays)\n    * [modifyHolidays.set](#modifyholidaysset)\n    * [modifyHolidays.add](#modifyholidaysadd)\n    * [modifyHolidays.remove](#modifyholidaysremove)\n    * [modifyHolidays.undo](#modifyholidaysundo)\n    * [modifyHolidays.load](#modifyholidaysload)\n    * [modifyHolidays.extendParser](#modifyholidaysextendparser)\n  * [Locales](#locales)\n* [License](#license)\n\n## Requirements\n* [moment.js](https://github.com/moment/moment) v2.0.0 or higher\n\n## Installation\n### Node.js\n```\nnpm install --save moment-holiday\n```\n\n```javascript\nvar moment = require('moment-holiday');\nmoment().holiday('Christmas');\n```\n\n### Browser\n```html\n<script src=\"moment.js\"></script>\n<script src=\"moment-holiday.js\"></script>\n<script>\n  moment().isHoliday();\n</script>\n```\n\n### Bower\n```\nbower install --save moment-holiday\n```\n\n## Building\n`moment-holiday.js` does not come with any locales built-in by default. However, the following files are included for your convenience:\n\n* `build/moment-holiday-pkg.min.js` - moment-holiday with all available locales built-in.\n* `build/moment-holiday-us.min.js` - moment-holiday with the `United States` locale built-in.\n* `build/moment-holiday.min.js` - Minified version of moment-holiday with no locales built-in.\n\nYou can generate the above files by running `gulp build`.\n\n### Custom Builds\nYou can also generate your own custom builds of moment-holiday by using gulp with the following options:\n* **name** - The name of the file to generate. (Defaults to `moment-holiday-custom.js`)\n* **locale** - The locale(s) you would like included in the build. Pass this option multiple times to include multiple locales.\n* **set** - The locale(s) to have set by default in the build. Pass this option multiple times to have multiple locales set by default.\n* **min** - Pass this option if you would like the generated file to be minified.\n\nFor example:\n\n```\ngulp --name=moment-holiday-ar.js --locale=Argentina --locale=Easter --set=Argentina --min\n```\n\nSourcemaps are automatically created for all minified builds.\n\n## Functions\n\n### holiday\n*or `holidays`*\n\nSearches for holiday(s) by keywords. Returns a single moment object, an object containing moment objects with the holiday names as keys, or `false` if no holidays were found.\n\n#### Use\n```javascript\nmoment().holiday(holidays, adjust);\n//or\nmoment().holidays(holidays, adjust);\n```\n\n#### Parameters\n* **holidays** - The holiday(s) to search for. Can be a string to search for a single holiday or an array to search for multiple. Defaults to all holidays.\n* **adjust** - See [global parameters](#global-parameters).\n\n#### Examples\n```javascript\nmoment().holiday('Memorial Day');\n//moment(\"2017-05-29T00:00:00.000\")\n\nmoment().holiday('Totally not a holiday');\n//false\n\nmoment().holiday(['Dad Day']);\n//{ 'Father\\'s Day': moment(\"2017-06-18T00:00:00.000\") }\n\nmoment().holidays(['Turkey Day', 'New Years Eve']);\n//{ 'Thanksgiving Day': moment(\"2017-11-23T00:00:00.000\"),\n//  'New Year\\'s Eve': moment(\"2017-12-31T00:00:00.000\") }\n\nmoment().holidays(['Not actually a holiday', 'Mothers Day']);\n//{ 'Mother\\'s Day': moment(\"2017-05-14T00:00:00.000\") }\n\nmoment('2018-01-01').holiday('Veterans Day');\n//moment(\"2018-11-11T00:00:00.000\")\n\nmoment('2018-01-01').holiday('Veterans Day', true);\n//moment(\"2018-11-12T00:00:00.000\")\n\nmoment().holidays();\n//Returns all holidays\n```\n\n### isHoliday\n\nReturns the name of the holiday (or `true` if `holidays` parameter is used) if the given date is in fact a holiday or `false` if it isn't. Will return an array of holiday names if multiple holidays land on that same day.\n\n#### Use\n```javascript\nmoment().isHoliday(holidays, adjust);\n```\n\n#### Parameters\n* **holidays** - Holidays to check for. Will cause function to return `true` if there is a match. Can be a string to compare with a single holiday or an array for multiple. Defaults to all holidays.\n* **adjust** - See [global parameters](#global-parameters).\n\n#### Examples\n```javascript\nmoment('2017-12-25').isHoliday();\n//Christmas Day\n\nmoment('2005-03-15').isHoliday();\n//false\n\nmoment('2009-10-31').isHoliday('Halloween');\n//true\n\nmoment('2017-12-31').isHoliday();\n//New Year's Eve\n\nmoment('2017-12-31').isHoliday(null, true);\n//false\n\nmoment('2017-04-17').isHoliday(null, true);\n//[ 'Easter Sunday', 'Easter Monday' ]\n```\n\n### previousHoliday\n*or `previousHolidays`*\n\nReturns an array (or a moment object if `count` is set to `1`) containing the previous holidays before the given date.\n\n#### Use\n```javascript\nmoment().previousHoliday(count, adjust);\n//or\nmoment().previousHolidays(count, adjust);\n```\n\n#### Parameters\n* **count** - The number of previous holidays to fetch. Defaults to `1`.\n* **adjust** - See [global parameters](#global-parameters).\n\n#### Examples\n```javascript\nmoment().previousHoliday();\n//moment(\"2017-07-04T00:00:00.000\")\n\nmoment('2001-02-14').previousHolidays(5);\n//[ moment(\"2001-01-15T00:00:00.000\"),\n//  moment(\"2001-01-01T00:00:00.000\"),\n//  moment(\"2000-12-31T00:00:00.000\"),\n//  moment(\"2000-12-25T00:00:00.000\"),\n//  moment(\"2000-12-24T00:00:00.000\") ]\n\nmoment('2001-02-14').previousHolidays(5, true);\n//[ moment(\"2001-01-15T00:00:00.000\"),\n//  moment(\"2001-01-01T00:00:00.000\"),\n//  moment(\"2000-12-25T00:00:00.000\"),\n//  moment(\"2000-11-24T00:00:00.000\"),\n//  moment(\"2000-11-23T00:00:00.000\") ]\n\nmoment().previousHoliday().isHoliday();\n//Independence Day\n```\n\n### nextHoliday\n*or `nextHolidays`*\n\nReturns an array (or a moment object if `count` is set to `1`) containing the next holidays after the given date.\n\n#### Use\n```javascript\nmoment().nextHoliday(count, adjust);\n//or\nmoment().nextHolidays(count, adjust);\n```\n\n#### Parameters\n* **count** - The number of upcoming holidays to fetch. Defaults to `1`.\n* **adjust** - See [global parameters](#global-parameters).\n\n#### Examples\n```javascript\nmoment().nextHoliday();\n//moment(\"2017-09-04T00:00:00.000\")\n\nmoment('2010-05-23').nextHolidays(5);\n//[ moment(\"2010-05-31T00:00:00.000\"),\n//  moment(\"2010-06-20T00:00:00.000\"),\n//  moment(\"2010-07-04T00:00:00.000\"),\n//  moment(\"2010-09-06T00:00:00.000\"),\n//  moment(\"2010-10-11T00:00:00.000\") ]\n\nmoment('2010-05-23').nextHolidays(5, true);\n//[ moment(\"2010-05-31T00:00:00.000\"),\n//  moment(\"2010-06-21T00:00:00.000\"),\n//  moment(\"2010-07-05T00:00:00.000\"),\n//  moment(\"2010-09-06T00:00:00.000\"),\n//  moment(\"2010-10-11T00:00:00.000\") ]\n\nmoment().nextHoliday().isHoliday();\n//Labor Day\n```\n\n### holidaysBetween\nReturns an array containing the holidays between the given date and the `date` parameter or `false` if no dates were found.\n\n#### Use\n```javascript\nmoment().holidaysBetween(date, adjust);\n```\n\n#### Parameters\n* **date** - The end date range for holidays to get. Can be any string that moment accepts or a moment object. Defaults to today.\n* **adjust** - See [global parameters](#global-parameters).\n\n#### Examples\n```javascript\nmoment().holidaysBetween(moment().endOf('year'));\n//[ moment(\"2017-09-04T00:00:00.000\"),\n//  moment(\"2017-10-09T00:00:00.000\"),\n//  moment(\"2017-10-31T00:00:00.000\"),\n//  moment(\"2017-11-11T00:00:00.000\"),\n//  moment(\"2017-11-23T00:00:00.000\"),\n//  moment(\"2017-11-24T00:00:00.000\"),\n//  moment(\"2017-12-24T00:00:00.000\"),\n//  moment(\"2017-12-25T00:00:00.000\") ]\n\nmoment('2011-11-01').holidaysBetween('2011-12-31');\n//[ moment(\"2011-11-11T00:00:00.000\"),\n//  moment(\"2011-11-24T00:00:00.000\"),\n//  moment(\"2011-11-25T00:00:00.000\"),\n//  moment(\"2011-12-24T00:00:00.000\"),\n//  moment(\"2011-12-25T00:00:00.000\") ]\n\nmoment('2011-11-01').holidaysBetween('2011-12-31', true);\n//[ moment(\"2011-11-11T00:00:00.000\"),\n//  moment(\"2011-11-24T00:00:00.000\"),\n//  moment(\"2011-11-25T00:00:00.000\"),\n//  moment(\"2011-12-23T00:00:00.000\"),\n//  moment(\"2011-12-26T00:00:00.000\"),\n//  moment(\"2011-12-30T00:00:00.000\") ]\n\nmoment('2017-01-01').holidaysBetween();\n//[ moment(\"2017-01-16T00:00:00.000\"),\n//  moment(\"2017-02-14T00:00:00.000\"),\n//  moment(\"2017-02-20T00:00:00.000\"),\n//  moment(\"2017-03-17T00:00:00.000\"),\n//  moment(\"2017-05-14T00:00:00.000\"),\n//  moment(\"2017-05-29T00:00:00.000\"),\n//  moment(\"2017-06-18T00:00:00.000\"),\n//  moment(\"2017-07-04T00:00:00.000\") ]\n```\n\n### Global Parameters\n* **adjust** - Set to `true` to make all holidays that land on a Saturday go to the prior Friday and all holidays that land on a Sunday go to the following Monday. Defaults to `false`.\n\n## The Holidays\n\n### Available Locales/Regions\n* [Argentina](locale/argentina.js)\n* [Canada](locale/canada.js)\n  * `Canada/AB` - Alberta\n  * `Canada/BC` - British Columbia\n  * `Canada/MB` - Manitoba\n  * `Canada/NB` - New Brunswick\n  * `Canada/NL` - Newfoundland and Labrador\n  * `Canada/NS` - Nova Scotia\n  * `Canada/NT` - Northwest Territories\n  * `Canada/NU` - Nunavut\n  * `Canada/ON` - Ontario\n  * `Canada/PE` - Prince Edward Island\n  * `Canada/QC` - Quebec\n  * `Canada/SK` - Saskatchewan\n* [Croatia](locale/croatia.js)\n* [Denmark](locale/denmark.js)\n* [Easter](locale/easter.js) (Easter Related Holidays)\n* [Finland](locale/finland.js)\n* [Germany](locale/germany.js)\n  * `Germany/BB` - Brandenburg\n  * `Germany/BW` - Baden-Württemberg\n  * `Germany/BY` - Bayern\n  * `Germany/HE` - Hessen\n  * `Germany/MV` - Mecklenburg-Vorpommern\n  * `Germany/NW` - Nordrhein-Westfalen\n  * `Germany/RP` - Rheinland-Pfalz\n  * `Germany/SN` - Sachsen\n  * `Germany/SL` - Saarland\n  * `Germany/ST` - Sachsen-Anhalt\n  * `Germany/TH` - Thüringen\n* [India](locale/india.js)\n* [United States](locale/united_states.js) (Default)\n\nRather than listing all of the holidays here, to see available holidays, view the source of the locale file.\n\nEaster related holidays for any locale will only be available if the Easter locale has been added. It's automatically added if you are using Node. (You can still easily add them in even when not using Node. See: [Modifying Holidays](#modifying-holidays))\n\n### Modifying Holidays\nYou can add and remove holidays by using the following helper functions:\n\n*Note: Helper functions can be chained.*\n\n#### modifyHolidays.set\nSets the holidays to be used.\n\n```javascript\nmoment.modifyHolidays.set(['New Years Day', 'Memorial Day', 'Thanksgiving']);\n\nmoment().holidays(); // Returns all holidays\n//{ 'New Year\\'s Day': moment(\"2017-01-01T00:00:00.000\"),\n//  'Memorial Day': moment(\"2017-05-29T00:00:00.000\"),\n//  'Thanksgiving Day': moment(\"2017-11-23T00:00:00.000\") }\n\nmoment.modifyHolidays.set({\n  \"My Birthday\": {\n    date: '11/17',\n    keywords: ['my', 'birthday']\n  },\n  \"Last Friday of the year\": {\n    date: '12/(5,-1)',\n    keywords_y: ['friday']\n  }\n});\n\nmoment().holidays(); // Returns all holidays\n//{ 'My Birthday': moment(\"2017-11-17T00:00:00.000\"),\n//  'Last Friday of the year': moment(\"2017-12-29T00:00:00.000\") }\n```\n\n#### modifyHolidays.add\nAdds holiday(s) to the holidays being used.\n\n```javascript\nmoment.modifyHolidays.add({\n  \"Inauguration Day\": {\n    date: '1/20',\n    keywords_y: ['inauguration']\n  }\n});\n\nmoment().holiday('Inauguration');\n//moment(\"2017-01-20T00:00:00.000\")\n```\n\n#### modifyHolidays.remove\nRemoves holiday(s) from the holidays being used.\n\n```javascript\nmoment.modifyHolidays.remove('Christmas');\n\nmoment.modifyHolidays.remove(['Dad Day', 'Mom Day', 'Saint Paddys Day']);\n```\n\n#### modifyHolidays.undo\nSets the holidays being used back to the way they were before they were last changed.\n\n```javascript\nmoment.modifyHolidays.set(['Christmas', 'Thanksgiving', 'Mothers Day', 'Fathers Day']);\nmoment().holidays();\n//{ 'Mother\\'s Day': moment(\"2017-05-14T00:00:00.000\"),\n//  'Father\\'s Day': moment(\"2017-06-18T00:00:00.000\"),\n//  'Thanksgiving Day': moment(\"2017-11-23T00:00:00.000\"),\n//  'Christmas Day': moment(\"2017-12-25T00:00:00.000\") }\n\nmoment.modifyHolidays.remove(['Thanksgiving', 'Christmas']);\nmoment().holidays();\n//{ 'Mother\\'s Day': moment(\"2017-05-14T00:00:00.000\"),\n//  'Father\\'s Day': moment(\"2017-06-18T00:00:00.000\") }\n\nmoment.modifyHolidays.undo();\nmoment().holidays();\n//{ 'Mother\\'s Day': moment(\"2017-05-14T00:00:00.000\"),\n//  'Father\\'s Day': moment(\"2017-06-18T00:00:00.000\"),\n//  'Thanksgiving Day': moment(\"2017-11-23T00:00:00.000\"),\n//  'Christmas Day': moment(\"2017-12-25T00:00:00.000\") }\n```\n\n#### modifyHolidays.load\nSimply loads a locale file and makes it available without modifying the current holidays.\n\n```javascript\nmoment.modifyHolidays.load('Argentina');\n\nmoment.modifyHolidays.load(['Canada', 'Easter']);\n```\n\n##### Adding/Setting Locales/Regions\nYou can also use these functions to set or add holidays from an available locale file:\n\n```javascript\nmoment.modifyHolidays.set('Canada').add('Easter');\nmoment('2001-12-26').isHoliday('Boxing Day');\n//true\n\nmoment.modifyHolidays.add('Easter').remove('Good Friday');\nmoment().holiday(['Easter Sunday', 'Good Friday']);\n//{ 'Easter Sunday': moment(\"2017-04-16T00:00:00.000\") }\n```\n\nYou use these same functions to specify regions to add:\n\n```javascript\nmoment.modifyHolidays.set('Germany/SN');\nmoment('2017-11-22').isHoliday();\n//Buß- und Bettag\n\nmoment.modifyHolidays.set('Canada/QC/ON');\nmoment().holidays(['boxing', 'baptiste']);\n//{ 'Boxing Day': moment(\"2017-12-26T00:00:00.000\"),\n//  'St. Jean Baptiste Day': moment(\"2017-06-24T00:00:00.000\") }\n```\n\nYou can also cherry-pick the holidays you want from a locale by passing a string or an array of strings as the second parameter:\n\n```javascript\nmoment.modifyHolidays.add('Easter', ['ascension', 'pentecost']);\nmoment().holiday(['ascension', 'pentecost']);\n//{ 'Ascension Day': moment(\"2017-05-25T00:00:00.000\"),\n//  'Pentecost Sunday': moment(\"2017-06-04T00:00:00.000\") }\n\nmoment.modifyHolidays.add('Germany/BB', 'Ostersonntag');\nmoment('2001-09-14').isHoliday();\n//[ 'Easter Sunday', 'Ostersonntag' ]\n```\n\n*Note: If you're not using Node (or anything that doesn't support the `require` function), you'll need to make sure that you include the locale file(s) that you're trying to use. For example:*\n\n```html\n<script src=\"./moment-holiday/locale/canada.js\"></script>\n<script src=\"./moment-holiday/locale/easter.js\"></script>\n<script>\n  moment.modifyHolidays.set('Canada').add('Easter');\n  moment('2001-12-26').isHoliday('Boxing Day');\n  //true\n</script>\n```\n\n##### Holiday Objects\nHoliday objects accept the following options:\n\n* **date** *(Required)* - The date of the holiday in the format of `Month/Day`. A day wrapped in parentheses `()` means a specific day of the week and expects two values separated by a comma `,`. The first part is the day of the week as recognized by [moment().day()](https://momentjs.com/docs/#/get-set/day/) (0=Sunday, 6=Saturday). The second part (optional) is the 1-indexed index of that day of week unless separated by brackets `[]` which means \"The weekday on or before/after this day\". Two dates separated by a vertical bar `|` means a date range. You may also specific a 4-digit year by adding an additional `/` after the day.\n\n  Examples:\n  * `5/20` - The 20th of May.\n  * `7/(1,3)` - The third Monday of July.\n  * `3/(4,-1)` - The last Thursday of March.\n  * `6/(2,[16])` - The Tuesday on or after the 16th of June.\n  * `11/(5,[-9])` - The Friday on or before the 9th of November.\n  * `8/21|9/4` - The 21st of August through the 4th of September.\n  * `11` - The 11th of every month of the year.\n  * `(0)` - Every Sunday of the year.\n  * `(6,-2)` - The second to last Friday of every month of the year.\n  * `10/(3)` - Every Wednesday in October.\n  * `12/7/2014` - December 7th, 2014.\n  * `(6)/2014` - Every Saturday of the year 2014.\n  * `2/(1,1)|5/(5,-1)` - The first Monday of February through the last Friday of May.\n  * `4/(3,[-11])|5/(0,1)` - The Wednesday on or before the 11th of March through the first Sunday of May.\n\n* **keywords** - An array of optional keywords.\n* **keywords_y** - An array of required keywords.\n* **keywords_n** - An array of banned keywords.\n* **regions** - An array of region abbreviations that the holiday is celebrated in. Basically a white-list.\n* **regions_n** - An array of region abbreviations that the holiday is NOT celebrated in. Basically a black-list.\n\nRegEx can be used in keywords. For example, `st[\\\\s\\\\.]` will match `St Jean` and `St. Patrick`, but not `Christmas` and `x-?mas` will match `xmas` and `x-mas`.\n\nView the source of [moment-holiday.js](moment-holiday.js) for a better look at how the keywords work.\n\n#### modifyHolidays.extendParser\nThis is a handy little function that allows you to extend the functionality of the date parser. It accepts a single function as a variable that gets passed a moment object and the date string as variables. It can return a single moment object, an array of moment objects, `false` to bail on parsing, or nothing at all to continue with the default parser.\n\nExample:\n```javascript\nmoment.modifyHolidays.add({\n  \"Friday The Thirteenth\": {\n    date: 'fridaythethirteenth',\n    keywords_y: ['friday'],\n    keywords: ['thirteen', '13', 'the']\n  }\n}).extendParser(function(m, date){\n  if (date === 'fridaythethirteenth') {\n    var days = [];\n\n    for (i = 0; i < 12; i++) {\n      var d = moment(m).month(i).date(13);\n      if (d.day() === 5) { days.push(moment(d)); }\n    }\n\n    if (!days.length) { return false; }\n    return days;\n  }\n});\n\nmoment().holiday('Friday 13th');\n//[ moment(\"2017-01-13T00:00:00.000\"),\n//  moment(\"2017-10-13T00:00:00.000\") ]\n```\n\nYou can also see how we take advantage of this by viewing the source of [locale/easter.js](locale/easter.js).\n\n## Locales\nLocale files are simply files that add holidays and special holiday parsing functionality for other countries. They are all located in the `locale/` folder.\n\nPull Requests will be accepted (and encouraged!) but must meet the following guidelines:\n* Must contain a `moment.holidays.[locale]` object matching the filename all in lowercase (spaces are converted to underscores).\n  * Example: `locale/japan.js` would need to have `moment.holidays.japan` in it.\n  * Invalid: `local/Japan.js` or `moment.holidays.Japan`\n* Must pass `npm test`.\n\nSee the source of [locale/canada.js](locale/canada.js) and [locale/easter.js](locale/easter.js) for good examples of locale files.\n\n## License\nMIT. See the License file for more info.\n","maintainers":[{"email":"kodie.grantham@gmail.com","name":"kodie"}],"time":{"modified":"2022-06-20T05:07:02.772Z","created":"2017-06-23T00:53:51.936Z","0.0.1-alpha.0":"2017-06-23T00:53:51.936Z","0.0.1-beta.0":"2017-07-02T16:23:49.473Z","0.0.1-beta.1":"2017-07-05T21:23:27.455Z","0.0.1-beta.2":"2017-07-16T15:20:32.329Z","1.0.0":"2017-07-16T20:34:32.664Z","1.1.0":"2017-07-17T18:46:39.377Z","1.1.1":"2017-07-17T18:56:00.176Z","1.2.0":"2017-07-17T22:53:06.293Z","1.3.0":"2017-07-19T21:40:43.936Z","1.3.1":"2017-07-19T22:25:05.329Z","1.4.0":"2017-07-24T21:55:37.991Z","1.4.1":"2017-07-24T22:15:35.026Z","1.4.2":"2017-07-26T19:18:44.237Z","1.5.0":"2017-08-03T22:53:46.933Z","1.5.1":"2017-08-03T23:03:06.074Z"},"homepage":"https://github.com/kodie/moment-holiday","keywords":["moment","momentjs","holiday","holidays","calculation","united states","us","canada","croatia","denmark","hrvatska","india","easter","finland","germany"],"repository":{"type":"git","url":"git+https://github.com/kodie/moment-holiday.git"},"author":{"name":"Kodie Grantham","email":"kodie.grantham@gmail.com","url":"http://kodieg.com"},"bugs":{"url":"https://github.com/kodie/moment-holiday/issues"},"license":"MIT","readmeFilename":"README.md","users":{"leonardorb":true}}