{"_id":"@date/holidays-us","_rev":"12-93cb0d513d796c3ae7c0011b983435cb","name":"@date/holidays-us","description":"USA bank and (some) public holidays","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"@date/holidays-us","version":"0.1.0","description":"USA bank and (some) public holidays","main":"lib","keywords":["holidays","holiday","dates","date","usa","us","new years","presidents","valentines","martin luther king jr","washington","memorial","independence","labor","columbus","veterans","halloween","thanksgiving","christmas"],"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"license":"MIT","scripts":{"compile":"coffee --bare --compile lib","clean":"rm -rf lib/*.js","prepublish":"npm run compile","postpublish":"npm run clean","test":"mocha --compilers coffee:coffee-script/register --reporter spec --bail --check-leaks test/lib"},"repository":{"type":"git","url":"git://github.com/elidoran/node-date-holidays-us.git"},"bugs":{"url":"http://github.com/elidoran/node-date-holidays-us/issues"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.3"},"dependencies":{"@date/generator":"^0.1.0","@date/holidays":"^0.2.0"},"engines":{"node":">=0.10"},"gitHead":"c036b3a0067e97665c279e734b9eb6a2bb0dd648","homepage":"https://github.com/elidoran/node-date-holidays-us#readme","_id":"@date/holidays-us@0.1.0","_shasum":"d1ee6bc35f2bdca762fbb899733a50049fe90e8d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"date","email":"eli+npm@elidoran.com"},"dist":{"shasum":"d1ee6bc35f2bdca762fbb899733a50049fe90e8d","tarball":"https://registry.npmjs.org/@date/holidays-us/-/holidays-us-0.1.0.tgz","integrity":"sha512-XOVjxBBD4JM+JvEJpLUxnChy2XRb1cT8GROOqJJ13SvWtSOlshTzj0J92qY5M4IcTKh+tD0k0vSeAoL7qj7ZyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKJuuLiTRI1EvJA69E10bVh4qMzHQOd30v9iA/du26lAIgZ7RdA4jcbTbpBT1XoTenZWak/lg1nvF83AmcvuuC3Gc="}]},"maintainers":[{"name":"date","email":"eli+npm@elidoran.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/holidays-us-0.1.0.tgz_1467331528242_0.4404162915889174"},"directories":{}},"0.2.0":{"name":"@date/holidays-us","version":"0.2.0","description":"USA bank and (some) public holidays","main":"lib","keywords":["holidays","holiday","dates","date","usa","us","new years","presidents","valentines","martin luther king jr","washington","memorial","independence","labor","columbus","veterans","halloween","thanksgiving","christmas"],"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"license":"MIT","scripts":{"compile":"coffee --bare --compile lib","clean":"rm -rf lib/*.js","prepublish":"npm run compile","postpublish":"npm run clean","test":"mocha --compilers coffee:coffee-script/register --reporter spec --bail --check-leaks test/lib"},"repository":{"type":"git","url":"git://github.com/elidoran/node-date-holidays-us.git"},"bugs":{"url":"http://github.com/elidoran/node-date-holidays-us/issues"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.3"},"dependencies":{"@date/generator":"^0.1.0","@date/holidays":"^0.2.0"},"engines":{"node":">=0.10"},"gitHead":"faf663e2c200f59e2116b9127d6524cb7dd37469","homepage":"https://github.com/elidoran/node-date-holidays-us#readme","_id":"@date/holidays-us@0.2.0","_shasum":"ec42c44ccf2c0f1fd2088ef3a24759e6583fb219","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"elidoran","email":"eli+npm@elidoran.com"},"dist":{"shasum":"ec42c44ccf2c0f1fd2088ef3a24759e6583fb219","tarball":"https://registry.npmjs.org/@date/holidays-us/-/holidays-us-0.2.0.tgz","integrity":"sha512-63GHI+TTnLmBh7K85S93NQFu2LpHJVq4NuqEcSlQnsHK4JrhR4KJe+EXPyztBDjSQSyvI13fn6PFLoCJvhbSPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHapBjxTwwRnNXGUXVMNIwXOQocOU9TfOH+4+/AeiRwnAiEAkyJ8mFVUNzKYQlIagvdWBbTdhGXjP7NLAuUEwo21VyU="}]},"maintainers":[{"name":"date","email":"eli+npm@elidoran.com"},{"name":"elidoran","email":"eli+npm@elidoran.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/holidays-us-0.2.0.tgz_1467375436043_0.396598651772365"},"directories":{}},"0.3.0":{"name":"@date/holidays-us","version":"0.3.0","description":"USA bank and (some) public holidays","main":"lib","keywords":["holidays","holiday","dates","date","usa","us","new years","presidents","valentines","martin luther king jr","washington","memorial","independence","labor","columbus","veterans","halloween","thanksgiving","christmas"],"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"license":"MIT","scripts":{"compile":"coffee --bare --compile lib","clean":"rm -rf lib/*.js","prepublish":"npm run compile","postpublish":"npm run clean","test":"mocha --compilers coffee:coffee-script/register --reporter spec --bail --check-leaks test/lib"},"repository":{"type":"git","url":"git://github.com/elidoran/node-date-holidays-us.git"},"bugs":{"url":"http://github.com/elidoran/node-date-holidays-us/issues"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.3"},"dependencies":{"@date/generator":"^0.1.0","@date/holidays":"^0.2.0"},"engines":{"node":">=0.10"},"gitHead":"e27d530535824696e311aa1d60250ce161750ad2","homepage":"https://github.com/elidoran/node-date-holidays-us#readme","_id":"@date/holidays-us@0.3.0","_shasum":"0a847102f0e27b8ef373b6c4bcecc2b2989565c8","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"elidoran","email":"eli+npm@elidoran.com"},"dist":{"shasum":"0a847102f0e27b8ef373b6c4bcecc2b2989565c8","tarball":"https://registry.npmjs.org/@date/holidays-us/-/holidays-us-0.3.0.tgz","integrity":"sha512-2ZBHkJHF6GX6FkiW5PbxZnS8c7fpt2Ko6fQQ3Vo4TPIKUQKuN9hBvsxNAG+oTzhLppGu13epUwRu8JCNGW/5Eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTuawtTpYA+tXLOb8Hf2PED+xQrYup9YzLlXcqpuAn3AiB5WnLyhSWXons0I68oRj2aFDU9w2h34bpzfLKCTOhIpA=="}]},"maintainers":[{"name":"date","email":"eli+npm@elidoran.com"},{"name":"elidoran","email":"eli+npm@elidoran.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/holidays-us-0.3.0.tgz_1469230118483_0.07782804500311613"},"directories":{}},"0.4.0":{"name":"@date/holidays-us","version":"0.4.0","description":"USA bank and (some) public holidays","main":"lib/index.js","files":["lib/index.js"],"keywords":["holidays","holiday","dates","date","usa","us","new years","presidents","valentines","martin luther king jr","washington","memorial","independence","labor","columbus","veterans","halloween","thanksgiving","christmas"],"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"license":"MIT","scripts":{"test":"mocha --require coffeescript/register --reporter spec --bail --check-leaks test/lib/*.coffee","test6":"nave use 6 npm test","test8":"nave use 8 npm test","test10":"nave use 10 npm test","test-all":"npm run test6 && npm run test8 && npm run test10","coverage":"istanbul cover -x 'build/**' _mocha -- --require coffeescript/register -R spec test/lib/*.coffee"},"repository":{"type":"git","url":"git://github.com/elidoran/node-date-holidays-us.git"},"bugs":{"url":"http://github.com/elidoran/node-date-holidays-us/issues"},"devDependencies":{"coffeescript":"^1.12.7","istanbul":"^0.4.5","mocha":"^5.2.0"},"dependencies":{"@date/generator":"^0.2.0","@date/holidays":"^0.3.2"},"engines":{"node":">=6"},"gitHead":"8db6bf4e94c846b89aad888c8793310993dd1aef","homepage":"https://github.com/elidoran/node-date-holidays-us#readme","_id":"@date/holidays-us@0.4.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"elidoran","email":"eli+npm@elidoran.com"},"dist":{"integrity":"sha512-0IHhlOgLMa4+XFWhLRU5jY0msPPX8TWNBAQ3ycqqCIWT6pzz/QyPUsVMn3kAoNxD8DqbkYwtLun876vhlELACw==","shasum":"55446ee6ce20a9c227ff32501fef50a6f6b0720c","tarball":"https://registry.npmjs.org/@date/holidays-us/-/holidays-us-0.4.0.tgz","fileCount":5,"unpackedSize":16994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUj2hCRA9TVsSAnZWagAATEUP+gNJY+ORAgZYxXu97yWM\nCSYn0Uw6vZrk9e8GBy3dtiiNUEBaRk5dPNuuuOFQQ6eIfqEr3RwYMhSlHkS4\nZesyBqAS0LPLqmQu6ULbzraSxmg5Bdis+WSDMXCZqCDHRNAvIyuH5iOLDTOQ\nTZDGiXJ74xCvgUG2lkEgsh2x6eQlfUZa2VW03Z5XtsKQL5oLbD91RHxFseer\nmLUPJjDomj9JOyXxZHGs6/0B9OS8R5jdtEowy44kcCqudiLTa3miSDsDdesK\n45Z+vapQjtS40Xg1ANjUr9OwXjBLzOudofmP5VrkpezyqCmZvodCHuC1ppT3\npmd8xUmBY1TKQFdEKjxQpwbnTUQaaAMk+eUgL/WWA8xN8X/SC8B62BYnzZEW\niwxCey+nNk7QlI0gP1ZU8Sv0R85NbD0zDloyRM3/aS7NbqlHPGak9MOavHPa\nQO61XwPNBNgjhsXbIAJLnrf3+WnBGYxQ88eiYAJLH5bUvT2nNZdclOjMILB5\nGSC2qgSWrJTjcmILdq8pwzaY8Uk9zkiposqaWxnKClYxnnlLVUnrFY3Feq1g\n54mSLP1uMJE3Tatae6pZvkTMEya/svWY3WkIFXa/CSJdH5/qNxbVkwpaN3ve\ns3thgEADwiYVc+Ja3sqdMAoRsB9LPiq/hyP2GNQ3dYM86GQc5kibmQ81VHSS\nHzLf\r\n=NlwR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+K3tSGy2s3l8Tm0vaLGb1p7WME2+BIDmUK19tdXwXyAiEAsSGuTRkJn/sJp+Bf+7uCPX13Vrcz6K+AR2qBZmWi8aQ="}]},"maintainers":[],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/holidays-us_0.4.0_1532116385802_0.3368415645542364"},"_hasShrinkwrap":false}},"readme":"# @date/holidays-us\n[![Build Status](https://travis-ci.org/elidoran/node-date-holidays-us.svg?branch=master)](https://travis-ci.org/elidoran/node-date-holidays-us)\n[![npm version](https://badge.fury.io/js/%40date%2Fholidays-us.svg)](http://badge.fury.io/js/%40date%2Fholidays-us)\n[![Coverage Status](https://coveralls.io/repos/github/elidoran/node-date-holidays-us/badge.svg?branch=master)](https://coveralls.io/github/elidoran/node-date-holidays-us?branch=master)\n\nA `@date/holidays` instance with USA public and bank holidays.\n\nAlso has functions to calculate dates for specific holidays.\n\n## Install\n\n```sh\nnpm install @date/holidays-us --save\n```\n\n## Usage\n\n```javascript\n// get Holidays instance with both public and bank holidays\nvar holidays = require('@date/holidays-us')\n\nvar date = new Date(2016, 0, 1) // New Year's Day 2016\nholidays.isHoliday(date) // true\n\ndate.setDate(10) // January 10th 2016\nholidays.isHoliday(date) // false\n\ndate = holidays.thanksgiving(2015) // November 26th, 2015\ndate = holidays.thanksgiving(2016) // November 24th, 2016\n\ndate = holidays.valentinesDay(2016) // February 14th, 2016\nholidays.isHoliday(date) // true, it's a holiday\n\n// this will return false because Valentine's Day isn't a bank holiday\nholidays.isHoliday(date, {\n  // only consider it a holiday when the properties in this object match\n  bank:true // must be a bank holiday\n})\n```\n\n\n## Only Bank Holidays\n\n```javascript\n// this has only the bank holidays, not the 'public' ones\nvar holidays = require('@date/holidays-us').bank()\n\n// returns false, Valentine's isn't a bank holiday\nholidays.isHoliday(new Date(2016, 1, 14))\n\n// returns true, New Year's is a bank holiday\nholidays.isHoliday(new Date(2016, 0, 1))\n```\n\n\n## Only Public Holidays\n\n```javascript\n// this has only the non-bank holidays\nvar holidays = require('@date/holidays-us').public()\n\n// returns true, Valentine's is a public holiday\nholidays.isHoliday(new Date(2016, 1, 14))\n\n// returns false, because New Year's is a bank holiday\nholidays.isHoliday(new Date(2016, 0, 1))\n\n// NOTE: technically, I suppose the bank holidays are also\n// public holidays, but, if you want both, use the default\n// instance which has both\n```\n\n\n## API: Generators\n\nFunctions which generate a specific holiday based on a specified year:\n\n1. newYearsDay() - can calculate observed holiday as well\n2. valentinesDay()\n3. martinLutherKingDay()\n4. presidentsDay()\n5. easter()\n6. mothersDay()\n7. memorialDay()\n8. fathersDay()\n9. independenceDay() - can calculate observed holiday as well\n10. laborDay()\n11. columbusDay()\n12. halloween()\n13. veteransDay() - can calculate observed holiday as well\n14. thanksgiving()\n15. christmas() - can calculate observed holiday as well\n\n## API: Observed Holidays\n\nSome holidays are \"observed\" on a different day than the holiday. The generate functions can calculate that as well.\n\n```javascript\nvar holidays = require('@date/holidays-us')\n\n// Christmas in 2016 is on a Sunday so it is \"observed\" the next day, Monday.\n// the call to the generator returns the date instance as expected\nvar christmasDay = holidays.christmas(2016) // same as new Date(2016, 11, 25)\n// it also has an `observed` property containing the \"observed\" holiday date\n// Note: if there is no \"observed\" holiday then `observed` is undefined\nvar observedChristmas = date.observed\n\n// christmas         == new Date(2016, 11, 25) Sunday, December 25th 2016\n// observedChristmas == new Date(2016, 11, 26) Monday, December 26th 2016\n```\n\n## MIT License\n","maintainers":[],"time":{"modified":"2022-06-12T16:57:17.093Z","created":"2016-07-01T00:05:30.038Z","0.1.0":"2016-07-01T00:05:30.038Z","0.2.0":"2016-07-01T12:17:18.059Z","0.3.0":"2016-07-22T23:28:40.335Z","0.4.0":"2018-07-20T19:53:05.874Z"},"homepage":"https://github.com/elidoran/node-date-holidays-us#readme","keywords":["holidays","holiday","dates","date","usa","us","new years","presidents","valentines","martin luther king jr","washington","memorial","independence","labor","columbus","veterans","halloween","thanksgiving","christmas"],"repository":{"type":"git","url":"git://github.com/elidoran/node-date-holidays-us.git"},"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"bugs":{"url":"http://github.com/elidoran/node-date-holidays-us/issues"},"license":"MIT","readmeFilename":"README.md","users":{"elidoran":true}}