{"_id":"@chaonengtan/few2.1-datelibrary","_rev":"2-50873fcb34d3cda067de5ff647e7642b","name":"@chaonengtan/few2.1-datelibrary","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@chaonengtan/few2.1-datelibrary","version":"1.0.0","description":"","main":"index.js","directories":{"test":"tests"},"dependencies":{"jest":"^26.6.3"},"devDependencies":{},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/ChaonengTan/FEW2.1-DateLibrary.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/ChaonengTan/FEW2.1-DateLibrary/issues"},"homepage":"https://github.com/ChaonengTan/FEW2.1-DateLibrary#readme","gitHead":"9524dd055591f5f60d167af1475a1419653227d5","_id":"@chaonengtan/few2.1-datelibrary@1.0.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-Y7+B/IZC3dwmK9YhVIpUS8i9R1aFrPw5ub/J+TuY2jlBI8A8varnjmwozg2/6+w/5ooeaS3MHhmr1KD3w/7EHg==","shasum":"ed714105ae788bfb483aa1b7ed6c58443a4c2f4d","tarball":"https://registry.npmjs.org/@chaonengtan/few2.1-datelibrary/-/few2.1-datelibrary-1.0.0.tgz","fileCount":4,"unpackedSize":4633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd3wcCRA9TVsSAnZWagAAOawQAJL1pVG9xgU3Jr+geoRJ\nlQPJwnpugXgbCnh57pgZpZXjxTCBKlGbgbm1zkr+qf1AnU0cAXh0+fqd8NPx\n8+AyZ84d4+ReGj9sMhMaWBh/qG+jhxM+4PItkluct5wymGfspSfLFykEKWyf\nmTKQVRitp2KWtxlzoO3hoz3WhOOMZIHjvUVuJ7YrB0TMaun7Ev2ytdbw6iNU\nzvUmpTiuoNLo5KmQ0EGjiyFy3dA8Wp9sRjSrqMtyzxvl1VO1/DeL2MsbohLc\nz44ecc8w31FyQTNa7DkPzcq4sIRjkI2skXqsHyc8OT8QGpw+v6jD7uqYyNcB\nthIE47fc2FgYpPKtNk9ba52wqGNlRZby4UyZ6SfgVtwxFWODc/hGE7VSoXEP\nFolm5BFsmTOrAwgLNYMZTi3M5z4jyFfsXbIBTOnSTLa/ofMsDRYRzaP1Y/Np\n576TaU7DwIe0peBmmWCt7ThDFYlOYmuggIYK/ecov8d1iN5DcIP9J54vNgUz\n0LjlzJm3/zwDhXXnmCG1/mciUln9w3HgyFqSzoSzBQIq1s1k6GhIkzm/BvFN\nvzo4dSCTtjwwyDcA7i6bpeQBvsNC48HDmtgO86PYmLev2juzErOVG9d6+ly2\nqPnSIGkAlcFg8BefsbCWHl/a8Daa3EgjNYr7ZbcVNHdGWOyfAp85t3XYsIBU\noXj5\r\n=nfaS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSSF0TQ/uC1MYjCsy5SPAp1OmcEocEAkz8lX5n6bh+JwIhAMFh9U8zvVOIUZ+FXdXPI42vA/fJlNCQ52raRSD70qvz"}]},"_npmUser":{"name":"chaonengtan","email":"chaoneng.tan@students.makeschool.com"},"maintainers":[{"name":"chaonengtan","email":"chaoneng.tan@students.makeschool.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/few2.1-datelibrary_1.0.0_1618443292008_0.07290453174379019"},"_hasShrinkwrap":false},"1.0.1":{"name":"@chaonengtan/few2.1-datelibrary","version":"1.0.1","description":"![npm (scoped)](https://img.shields.io/npm/v/@chaonengtan/few2.1-datelibrary) ![NPM](https://img.shields.io/npm/l/@chaonengtan/few2.1-datelibrary) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/ChaonengTan/FEW2.1-DateLibrar","main":"index.js","directories":{"test":"tests"},"dependencies":{"jest":"^26.6.3"},"devDependencies":{},"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/ChaonengTan/FEW2.1-DateLibrary.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/ChaonengTan/FEW2.1-DateLibrary/issues"},"homepage":"https://github.com/ChaonengTan/FEW2.1-DateLibrary#readme","gitHead":"079b88baaa75102fdcfbebe7fa8b7e9c38197445","_id":"@chaonengtan/few2.1-datelibrary@1.0.1","_nodeVersion":"14.8.0","_npmVersion":"6.14.9","dist":{"integrity":"sha512-xm1HZnzfBSCI1nBwYPNzdeex+yK3OfRNS5s8vfzW717NY5JKKK/tWMrLF9SeR+nKd4Bj7Vh15OeFDw1/AP1K3w==","shasum":"328a349a81712deac46ca8239aed0385184e115f","tarball":"https://registry.npmjs.org/@chaonengtan/few2.1-datelibrary/-/few2.1-datelibrary-1.0.1.tgz","fileCount":5,"unpackedSize":6337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd4IKCRA9TVsSAnZWagAAP0sQAIYdFtPVWxNpfXeyE/WB\nA5QB0eaOjPYoZOIDLw3ahOrkrFVnASkaaqzmeb9pIiIRjcoYeuZl45b/uwfo\nxQWws47fKid7VgTgiirza1V0kkymRKWMyHBB8gNamJ/1yePErJ5S10px/gOs\n/JSdzslekYMxLSkNB/uInvAOIcLPr1B3oNgybYqP3tYkLG9OPm1V9tJtgikf\nGfkno2PpEQfTz/bvxYOUlVg6AMf4DIrzPiwy97BZkkscwnQAISk6rQ6dCy8B\nyLvQaHY6i9GryG1jF6DBM/yrb5UV44q22wnRkDOpU9Aa9HZddQkvO0hvFCD1\nABDQlUb4zNqYm8zPfXa3Ouaj43SwlGMNUcOs4aRjWEiFdgWKzQnB34/I1E74\n5uUB71RL8E/Rd3TTgQaySFKjt8Qdhv2b88pcTtYj9ZEJy1pChNWXfthiBzmx\naAZF5zqMexx892FWMmdHQfZJ7lop3MzG4id28nA5JPunlHxXX0dBPPN4/HRn\nMwaNU6dlsaCJawqHOfVaTQxCeFtRxr2j1Mk6ue00Z5wgoqCIS5EsQ/VrTMrS\nNTPFgHfIyFeMvRvg5pYRbwhE/KjB7a9Gn5F7AjIdpzy3W1oSq2qtDmwGCtr9\nwQeY0Nw8On+uSvtKBV7bC/7V2pISZl+KszmGmnrQA1Bs9yAo1Gzvk4lY8pev\nEz46\r\n=nXRi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnmV1hKLt4YXVtEkOg+6yArtRuE2kAcqscJ01//26UaAiEA97mx11M7IT2uoO6CheXc9otAMyCe+sE6i6pxV+TsItg="}]},"_npmUser":{"name":"chaonengtan","email":"chaoneng.tan@students.makeschool.com"},"maintainers":[{"name":"chaonengtan","email":"chaoneng.tan@students.makeschool.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/few2.1-datelibrary_1.0.1_1618444809925_0.883634047014811"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-14T23:34:51.964Z","1.0.0":"2021-04-14T23:34:52.139Z","modified":"2022-04-04T22:31:04.219Z","1.0.1":"2021-04-15T00:00:10.167Z"},"maintainers":[{"name":"chaonengtan","email":"chaoneng.tan@students.makeschool.com"}],"homepage":"https://github.com/ChaonengTan/FEW2.1-DateLibrary#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/ChaonengTan/FEW2.1-DateLibrary.git"},"bugs":{"url":"https://github.com/ChaonengTan/FEW2.1-DateLibrary/issues"},"license":"ISC","readme":"![npm (scoped)](https://img.shields.io/npm/v/@chaonengtan/few2.1-datelibrary) ![NPM](https://img.shields.io/npm/l/@chaonengtan/few2.1-datelibrary) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/ChaonengTan/FEW2.1-DateLibrary) ![GitHub issues](https://img.shields.io/github/issues/ChaonengTan/FEW2.1-DateLibrary)\n\nDateLibrary\n\nAdds easy ways to access properties of the Date object\nAdds format function to return a customized formatted date string\nAdds when function to return in how long is the target date compared to today\n\nGetters:\n.year (returns the full year ie. 2021)\n.yr (returns the shortened year ie. 21)\n.month (returns the month in text ie. April)\n.mon (returns the month in shortened text ie. Apr)\n.week (returns the weekday in text ie. Wednesday)\n.wk (returns the weekday in shortened text ie. Wed)\n.dates (returns the padded date ie. 04)\n.date (returns the date ie. 4)\n.hours (returns the padded hour ie. 06)\n.hr (returns the hour ie. 6)\n.minutes (returns the padded minutes ie. 01)\n.mins (returns the minutes ie. 1)\n.seconds (returns the padded seconds ie. 07)\n.secs (returns the seconds ie. 7)\n\nFunctions: \n.format(format) (returns a customized formatted date string using the following key and getters above:\n    'Y':this.year, \n    'y':this.yr, \n    'M':this.month, \n    'm':this.mon, \n    'D':this.dates, \n    'd':this.date, \n    'H':this.hours, \n    'h':this.hr, \n    'I':this.minutes, \n    'i':this.mins, \n    'S':this.seconds, \n    's':this.secs\n)\n.when() (returns in how long is the target date compared to today in the largest magnitude\nif const targetDate = Date(2022, 5, 15)\nif today is Date(2021, 4, 14)\ntoday.when() //returns 1years\n)","readmeFilename":"README.md","description":"![npm (scoped)](https://img.shields.io/npm/v/@chaonengtan/few2.1-datelibrary) ![NPM](https://img.shields.io/npm/l/@chaonengtan/few2.1-datelibrary) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/ChaonengTan/FEW2.1-DateLibrar"}