{"_id":"@date/generator","_rev":"11-33cd52d5b5072f8e14ecab4b1616bf10","name":"@date/generator","description":"Calculate dates with easy to read helper functions","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@date/generator","version":"0.1.0","description":"Calculate dates with easy to read helper functions","main":"lib","keywords":["generate","calculate","dates","date","chain","functions"],"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-generator.git"},"bugs":{"url":"http://github.com/elidoran/node-date-generator/issues"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.3"},"dependencies":{},"engines":{"node":">=0.10"},"gitHead":"077581dae18d78d9b3cba4e4049db516c2614c7a","homepage":"https://github.com/elidoran/node-date-generator#readme","_id":"@date/generator@0.1.0","_shasum":"8d94614e40dcdc89ee084c441320243fb3e4ab3c","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"date","email":"eli+npm@elidoran.com"},"dist":{"shasum":"8d94614e40dcdc89ee084c441320243fb3e4ab3c","tarball":"https://registry.npmjs.org/@date/generator/-/generator-0.1.0.tgz","integrity":"sha512-otM9iv6v6Ix31UXFE3X1mNK9XFQLJ5jfgNtj8i84O3Vehumy8HRpZ94oF3pTZWYLAUpmC11RYq0GHV+pT/bBaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ0uaxPH1KKIcFjH2aJ4xQNRxXg9gih3qMPd6A4C59hwIgOEUquqVVOt/uPSkMm9HV+7tUAYZOfaq+wGnQF4LchL0="}]},"maintainers":[{"name":"date","email":"eli+npm@elidoran.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/generator-0.1.0.tgz_1467315404560_0.29456934286281466"},"directories":{}},"0.1.1":{"name":"@date/generator","version":"0.1.1","description":"Calculate dates with easy to read helper functions","main":"lib","keywords":["generate","calculate","dates","date","chain","functions"],"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-generator.git"},"bugs":{"url":"http://github.com/elidoran/node-date-generator/issues"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.3"},"dependencies":{},"engines":{"node":">=0.10"},"gitHead":"5e9f65391c83a5a81205882ae1fd608a27b9b549","homepage":"https://github.com/elidoran/node-date-generator#readme","_id":"@date/generator@0.1.1","_shasum":"325519b17528e5a9ffc38cbf60a599fcfef1d4e0","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"elidoran","email":"eli+npm@elidoran.com"},"dist":{"shasum":"325519b17528e5a9ffc38cbf60a599fcfef1d4e0","tarball":"https://registry.npmjs.org/@date/generator/-/generator-0.1.1.tgz","integrity":"sha512-MKtq8jS2wS4rQrmEIcrQhiSn3MkItbMyTRMvTvqfkdKHZAcJJjtErf2BVDJm4Wa2bCedKEzmXPyUlWBtvOlibw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkrUcNHte5bkzC/WFap4q2fzOfsTEWerGCWi0U+4HFLQIgG009IMPGKIspH5qJ5jmzAbJ9T44T2XJ7JfIL9SwIzKY="}]},"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/generator-0.1.1.tgz_1469230565560_0.6134316094685346"},"directories":{}},"0.2.0":{"name":"@date/generator","version":"0.2.0","description":"Calculate dates with easy to read helper functions","main":"lib/index.js","files":["lib/index.js"],"keywords":["generate","calculate","dates","date","chain","functions"],"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"license":"MIT","scripts":{"test":"mocha --require coffee-script/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 coffee-script/register -R spec test/lib/*.coffee"},"repository":{"type":"git","url":"git://github.com/elidoran/node-date-generator.git"},"bugs":{"url":"http://github.com/elidoran/node-date-generator/issues"},"devDependencies":{"coffee-script":"^1.12.7","coveralls":"^3.0.2","istanbul":"^0.4.5","mocha":"^5.2.0"},"dependencies":{},"engines":{"node":">=6"},"gitHead":"8388b1cabf03ef970e47f1eb1adf2b587388a7b6","homepage":"https://github.com/elidoran/node-date-generator#readme","_id":"@date/generator@0.2.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"elidoran","email":"eli+npm@elidoran.com"},"dist":{"integrity":"sha512-ZgVHRepUkP/VVUI27ksbFGrJM4jiikef/I9nx1+hNKiFxnbkFG852xN85lsMf/7OqY3+5rsicKrgQuDWA0/ggQ==","shasum":"0228d98609fca29a7d8683b9d594141c9ff79f35","tarball":"https://registry.npmjs.org/@date/generator/-/generator-0.2.0.tgz","fileCount":5,"unpackedSize":9790,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUcwcCRA9TVsSAnZWagAAs9kQAKSOtVGDlP9KRmPpZn5D\n1vhIsgfm0y97kNixTfn0NNFfqvxrLiIjFjUdGATeJs5pmy+ujTfXmzTp5eCx\nYiHZYSuTOgM1ZhXVLCPHdVS1+D8xXIizIoiRBtdJz+hHpmELuiSnL2eq14Xl\nYtdYNsfdKJLwryVg1wiEXSjsVj1PEpEQiHX6NapPQdFY6LQsWCFjY47izfEv\nuhxOyikcBsVmTZmMljTtcHvaqsjK8/uBnoADOMP1H97z41EnIFE/nq0jihA9\nzgIGuJr2BRi3Z0yW+qDZd7go7Pc29HVijicfZXeFftO7LUVYNsOmob1J9FPO\n+BszamheTOI9KZP3JgGSgzxer7SKa8/8kVp0wZpQBhXl8jWipD89BfBnKA9j\n+KIg4j8AqfnLgjDQsj4F9m7/RdaNh+KDDtp3tTMBTsIm63sBWjx7nXe2I93t\n7OD2E7IhQjNz9BRkwJ70TBcv71/BBFwVVvYVgBMv+Ma7m4O6bxU0acKvck4v\nSYjJLhp+gnsSNpK39AeDBty3FMbU6cU06xNQLQOmVDvLQFdZ0TqvXGK1h/lN\ngWjFThL3vJkhsmweICnrxHwQpdoj2PZS8dQrnafK1/7E3sESGupu46rBnfW5\ndPduN2TCz87KZtNZhshs3+xFeO9CrV7+i8E6uOsvYkgQiVIfKetwgBLPSTvq\nhF+N\r\n=DkUa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBp3ekA19QG1yJbLLGdAs7p1zPkyXMW2e67WHaf1on61AiAii596t0WukdSt4PGgjfMpALJExxKYGlTB1WNMXQnbBg=="}]},"maintainers":[],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/generator_0.2.0_1532087324295_0.17029972028188878"},"_hasShrinkwrap":false}},"readme":"# @date/generator\n[![Build Status](https://travis-ci.org/elidoran/node-date-generator.svg?branch=master)](https://travis-ci.org/elidoran/node-date-generator)\n[![npm version](https://badge.fury.io/js/%40date%2Fgenerator.svg)](http://badge.fury.io/js/%40date%2Fgenerator)\n[![Coverage Status](https://coveralls.io/repos/github/elidoran/node-date-generator/badge.svg?branch=master)](https://coveralls.io/github/elidoran/node-date-generator?branch=master)\n\nGenerate dates with readable function chaining.\n\nAlso has functions accepting numbers to help with using values provided from elsewhere.\n\n## Install\n\n```sh\nnpm install @date/generator --save\n```\n\n## Usage\n\n\n```javascript\nvar gen = require('@date/generator')\n\n// these are equivalent:\n//   specify each thing individually\nvar washingtonDay = gen.third().monday().in().february().of(2016)\n//   skip the in() and of() and specify the year in the february() call\nvar washingtonDay = gen.third().monday().february(2016)\n//   specify 'third' with a '3' to monday(),\n//           'february' with '1' to month()\nvar washingtonDay = gen.monday(3).month(1).of(2016)\n\nvar thanksgiving  = gen.fourth().thursday().in().november().of(2016)\n```\n\n## Order\n\nStart with the order functions:\n\n1. `first()` - 1\n2. `second()` - 2\n3. `third()` - 3\n4. `fourth()` - 4\n5. `last()` - 5 (will be last, even when last is the fourth)\n\n\n## Days\n\nDay functions are available after calling an order function, or, start with them and specify the order value as 1-5:\n\n1. `sunday()`\n2. `monday()`\n3. `tuesday()`\n4. `wednesday()`\n5. `thursday()`\n6. `friday()`\n7. `saturday()`\n\n\n## Months\n\nMonth functions are available after calling a day function:\n\n1. `january()`\n2. `february()`\n3. `march()`\n4. `april()`\n5. `may()`\n6. `june()`\n7. `july()`\n8. `august()`\n9. `september()`\n10. `october()`\n11. `november()`\n12. `december()`\n\n\nAlso, shortcut making a call to `of(year)` after it and specify the year in the month call, like `august(2016)`.\n\n## Years\n\nLast call specifies the year to function `of(year)` and returns a Date instance.\n\n## [MIT License](LICENSE)\n","maintainers":[],"time":{"modified":"2022-06-12T16:57:16.576Z","created":"2016-06-30T19:36:46.813Z","0.1.0":"2016-06-30T19:36:46.813Z","0.1.1":"2016-07-22T23:36:07.601Z","0.2.0":"2018-07-20T11:48:44.398Z"},"homepage":"https://github.com/elidoran/node-date-generator#readme","keywords":["generate","calculate","dates","date","chain","functions"],"repository":{"type":"git","url":"git://github.com/elidoran/node-date-generator.git"},"author":{"name":"Eli Doran","email":"eli+npm@elidoran.com"},"bugs":{"url":"http://github.com/elidoran/node-date-generator/issues"},"license":"MIT","readmeFilename":"README.md","users":{"elidoran":true}}