{"_id":"@byto/ts-calendar","_rev":"2-579a8a9f7cc8dc6b26f2fa055d539a75","name":"@byto/ts-calendar","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@byto/ts-calendar","version":"1.0.0","description":"## 1 - Introduction","main":"index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/bytooo/ts-calendar.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/bytooo/ts-calendar/issues"},"homepage":"https://github.com/bytooo/ts-calendar#readme","devDependencies":{"@types/node":"^18.7.8","typescript":"^4.7.4"},"gitHead":"01e4daf39397b90962be69f5aadf615868dfff59","_id":"@byto/ts-calendar@1.0.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-gZxqb4RybQc7BhwvIXbgbAstF+510f2maUWSEZN3l6nC9qhmeXG8fsFDt08SjU6b1vjIoR33w0RIMaXklrszKw==","shasum":"5444a2181b6d72772c7f15f151cc9b9b80c645e3","tarball":"https://registry.npmjs.org/@byto/ts-calendar/-/ts-calendar-1.0.0.tgz","fileCount":16,"unpackedSize":19482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcoXnX6/RV53m2GzOVEf2BTXbaoQxhk2pOfdcZ61wD5AiEAhSQaTpnZKE9d91bglN2gw2JM1W76xlMbb1ILkkOgvyI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAZZeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonQw/9EjYd4xawELFB67uZKwuPycyCYTimx/srHMKc/pvltrC66+tT\r\nNR4nVaY9HHDU4M1OsRqEQB8iCR0clPOdTS2nnl3TgmwfvqWetl00msu5qysC\r\nwVh1qfIS+P6zoA9gv82/6Fv78yF/8H82CgsSKJrETpG4H80bN7TbvBuGpJL4\r\nS+qSnx8vvguABKxMVzEFOY6sEzXDQEt/PE1qN8M3hLMNjDwgpbHCb6fPpAKg\r\nWHji6DROd9AhYySjhqnDb7WsQBG6crmcvemLlwicebsdzA33kCokV6+5gpPk\r\n3uThCH+FVCwR5sXLVjvYRwt2X/fitjdLicwXBS9F7juG7MvXJkqdSRzYH7fv\r\nXyVQANNSE39C6YznZGRh1/Yp2EGnmMkozzYdkBD1nGoCYsOndYHUSPQ79qw2\r\nDEjm/rWn9qmO7ryL4AxfnVbmS3aK3YK/0dH43JNhUbhA48IJk25zcr5pzADi\r\nBhEo91MZcqG5+IZ2tOgWyg8X7RFaDS/RQKIlgxEqbXrSbbVh8r6aQ82BzEYE\r\n2/n/LPdnF8lvEqvVREn5Bo14+FO37SMfOJYQRDy8/M/YyU3s/fMs1/mF3+cT\r\nNr17dknTIGyOmoijlHYj47FFFQwYW9s5V5emLUJqnTjuv+UNgp3zVP335WCS\r\n7M4J+OFpop/tOdPUC8f9V9kxX7XcG4IEI90=\r\n=v50C\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"byto","email":"bytocode@gmail.com"},"directories":{},"maintainers":[{"name":"byto","email":"bytocode@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-calendar_1.0.0_1661048413849_0.28463439010037184"},"_hasShrinkwrap":false},"1.0.1":{"name":"@byto/ts-calendar","version":"1.0.1","description":"## 1 - Introduction","main":"lib/index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/bytooo/ts-calendar.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/bytooo/ts-calendar/issues"},"homepage":"https://github.com/bytooo/ts-calendar#readme","devDependencies":{"@types/node":"^18.7.8","typescript":"^4.7.4"},"gitHead":"e0b5e8abd46c936b5116d47b66d9d0e86642a4f0","_id":"@byto/ts-calendar@1.0.1","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-jkwVAex563zOWz85T9WwWZmXazxd7t9KsaDDvibjKRtxzvq7PwAiO178t2KebWgW2z7FMJgpUjBha9+2F6LPJg==","shasum":"454f613b37bf7a9416daf5a58b00e00cf692519e","tarball":"https://registry.npmjs.org/@byto/ts-calendar/-/ts-calendar-1.0.1.tgz","fileCount":16,"unpackedSize":19486,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAiKRE5NdrPCJTMhpJWbSWo1C/s/olsC0rz9RMWqJYdAIgTiFS4PLsGsIyZ5nMhZihkF0OzLpVxjsgUH5Dyns1drQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAZcjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/oQ//amUAxJlkJtPEsETUdR6mA/b1S0PH3Zm7vxHsrF9tp/21qkuk\r\nY/wYQzuWJQFvFUeyf1Km+QzRN9wdV/ixJGibbOwcj3Z/U/7eSfPPjOK1/qHO\r\n212jmzvCWf2JKTJ5A8DpPQsommPz+IHsw9tdiHfhNOOa7KGMU51XJemoTCCO\r\nCXERei4TQOYJmXni7q7j19rkzHUIJITkwAxrH+3Y+8keEq4yUUAWuh9rh7Px\r\njYVSGd1b3PY0rY+0WCMUr2letRxLFXfBEehiaQN2d+BLHKnurpzSTkqz+Yps\r\n4BEMPtqqsjv0t+8Bmo4uhfk+nWNZacMcleUnh75ZOaNtrxr9u3jycaACOz+t\r\nC4oZH6ZCEDaD+mFy0D8MMH5rI2NaqWoC/+hMENHnULy+pGRHjgbhcpxR9Gg9\r\nLS0Van+J0TSowb7tiVX6xBSmYDJs9KegTo2pwZDVLslNyJe+Xq4al8cZosvJ\r\n1lRMfUi7JhtHkkij8oJovToiJdMsvIq91hsv51LuqJcNx7DPLx+wwdtOHIRG\r\nrwMJkAGcNKIeh/GniVurNaFv3vgqKyO7pCYXuKmx0ka2IZAyp3UcviYmXixe\r\nEvOuyD/5Nmm4kA2pk2PmSIJyZLK+vHGbMU9udB9z/WcmUc6O5/A+PR0KeSE3\r\nnx8MTltYTuHQlU9fqIpkgE4ccFpnhTp/ntI=\r\n=Ykr5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"byto","email":"bytocode@gmail.com"},"directories":{},"maintainers":[{"name":"byto","email":"bytocode@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-calendar_1.0.1_1661048611260_0.07754223480243083"},"_hasShrinkwrap":false},"1.0.2":{"name":"@byto/ts-calendar","version":"1.0.2","description":"## 1 - Introduction","main":"lib/index","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/bytooo/ts-calendar.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/bytooo/ts-calendar/issues"},"homepage":"https://github.com/bytooo/ts-calendar#readme","devDependencies":{"@types/node":"^18.7.8","typescript":"^4.7.4"},"types":"./lib/index.d.ts","gitHead":"84d674beb192cfae2d75ef3a7956381e3b6d4aff","_id":"@byto/ts-calendar@1.0.2","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Eune1cB9lR5VhIXe1lN3yig5fkGG1Kg6aB+bg4GXix79KVfsuXyuLK7TutwR7udqsTdboJefAixZgplsf7SryA==","shasum":"d3f2d43721e1ce07fd5efdd26dbb0d019bfb088c","tarball":"https://registry.npmjs.org/@byto/ts-calendar/-/ts-calendar-1.0.2.tgz","fileCount":16,"unpackedSize":19481,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBFun9xGSU6K9SevxQd+sldPmFFsWSdPgEcANCj0gXQAiA9X7WiC64hMNZ9pZBEShwTY5xRpJymiLS1ufK7fgrgMQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAZlJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqI+g//fA2dHn8aJ1b1ttg9Rm37ynVIbzXX610ACut8vmZGYgjDL5fm\r\nXLDsAHZJSuiHX7fdwGqVymbISSHl9ISog5XTiS3JSXT/IApSoXVPK69JuFZr\r\nLdBuUuDBSGYhdUw4B3O2fdmXXk3gyGPapxu91YMd7wDyrVCwEFcTd473XHsA\r\nIcPvdO7PUDOqKMAwoZ4AeIotdXqApN94YgpxjmErvUwY3vWE8GrcHu2oUTxw\r\n9+2AAVl+JJsZV3BKxRs5P8tP0xWoNT1GhENR7JQiX0FWKTVdgD1wAoxh5IFe\r\n/nLxfi6Q4AbQBcG+r85j3gCcbWOqrH+o4L7NiGyEvaLi6weBXS5jyQBYFwZY\r\nG3oF3FxPPDeLBSOdnEVe2JLHwB/aoitC4RB1TgeD3XkyXr1YaQscR0kCr9lk\r\nXrMQy8FS30ofViw59PbdsDuvwlGQGlhhyH2yqsyT6vrzZfWyKw9/upam7wKL\r\nYbIABb+G5EwvGokIaU/bfOg1FvxAmyb6Q3Q+jCuChHRqfB4mRtbR5mXwTRNp\r\nwQUHbyJmHWVoKOOCzb4xeUU3KXz55KW/DLysZP+uEfB90MDxR8EoD/J2HCPK\r\n3ZVBAeTOIGBOwV5p5NxMGxthAGS1f3HsJCqT4h6pMwngDfhbctMitvQZKNbg\r\nVsRoJTO7rtGagGDe86RxIlYJM8edK9jILF0=\r\n=HFBm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"byto","email":"bytocode@gmail.com"},"directories":{},"maintainers":[{"name":"byto","email":"bytocode@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-calendar_1.0.2_1661049161292_0.11666594870139013"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-21T02:20:13.785Z","1.0.0":"2022-08-21T02:20:14.013Z","modified":"2022-08-21T02:32:41.702Z","1.0.1":"2022-08-21T02:23:31.406Z","1.0.2":"2022-08-21T02:32:41.629Z"},"maintainers":[{"name":"byto","email":"bytocode@gmail.com"}],"description":"## 1 - Introduction","homepage":"https://github.com/bytooo/ts-calendar#readme","repository":{"type":"git","url":"git+https://github.com/bytooo/ts-calendar.git"},"bugs":{"url":"https://github.com/bytooo/ts-calendar/issues"},"license":"ISC","readme":"# TS-Calendar\n\n## 1 - Introduction\n\n### 1.1 - What is this?\n\nThis is a very small TypeScript module to represent a calendar.\n\n\n### 1.2 - Image\n\n[example: 2022/1 Calendar]\n\n| 2022/1 Calendar object      |\n|-----------------------------|\n| CalendarWeek object (Week1) |\n| CalendarWeek object (Week2) |\n| CalendarWeek object (Week3) |\n| CalendarWeek object (Week4) |\n| CalendarWeek object (Week5) |\n| CalendarWeek object (Week6) |\n\n⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️\n\n|                             | Sun                 | Mon                 | Tue                 | Wed                 | Thu                 | Fri                 | Sat                 |\n|-----------------------------|---------------------|---------------------|---------------------|---------------------|---------------------|---------------------|---------------------|\n| CalendarWeek object (Week1) | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object |\n| CalendarWeek object (Week2) | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object |\n| CalendarWeek object (Week3) | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object |\n| CalendarWeek object (Week4) | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object |\n| CalendarWeek object (Week5) | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object |\n| CalendarWeek object (Week6) | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object | CalenderDate object |\n\n⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️\n\n| Sun        | Mon        | Tue        | Wed        | Thu        | Fri        | Sat       |\n|------------|------------|------------|------------|------------|------------|-----------|\n| 2021/12/26 | 2021/12/27 | 2021/12/28 | 2021/12/29 | 2021/12/30 | 2021/12/31 | 2022/1/1  |\n| 2022/1/2   | 2022/1/3   | 2022/1/4   | 2022/1/5   | 2022/1/6   | 2022/1/7   | 2022/1/8  |\n| 2022/1/9   | 2022/1/10  | 2022/1/11  | 2022/1/12  | 2022/1/13  | 2022/1/14  | 2022/1/15 |\n| 2022/1/16  | 2022/1/17  | 2022/1/18  | 2022/1/19  | 2022/1/20  | 2022/1/21  | 2022/1/22 |\n| 2022/1/23  | 2022/1/24  | 2022/1/25  | 2022/1/26  | 2022/1/27  | 2022/1/28  | 2022/1/29 |\n| 2022/1/30  | 2022/1/31  | 2022/2/1   | 2022/2/2   | 2022/2/3   | 2022/2/4   | 2022/2/5  |\n\n\n\n## 2 - Usage\n\n### 2.1 - Usage1 \n\n[example: If today is January 2022]\n\n```typescript\nconst thisMonth: Calendar = Calendar.ofThisMonth();\nconst weeks: CalendarWeek[] = thisMonth.getWeeks();\n\nweeks.forEach(week => {\n  const dates: string = week.getDates().join(\"|\");\n  console.log(`|${dates}|`);\n});\n```\n\n⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️\n\n```shell\n|26|27|28|29|30|31|1|\n|2|3|4|5|6|7|8|\n|9|10|11|12|13|14|15|\n|16|17|18|19|20|21|22|\n|23|24|25|26|27|28|29|\n|30|31|1|2|3|4|5|\n```\n\n\n### 2.2 - Usage2\n\n[example: If today is January 2022]\n\n```typescript\nconst thisMonth: Calendar = Calendar.ofThisMonth();\nconst weeks: CalendarWeek[] = thisMonth.getWeeks();\n\nweeks.forEach(week => {\n  const dates: string = week.getDates().filter(date => thisMonth.isThisMonth(date.toMonth())).join(\"|\")\n  console.log(`|${dates}|`);\n});\n```\n\n⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️\n\n```shell\n|1|\n|2|3|4|5|6|7|8|\n|9|10|11|12|13|14|15|\n|16|17|18|19|20|21|22|\n|23|24|25|26|27|28|29|\n|30|31|\n```\n\n\n\n## 3- API Overview\n\n### 3.1 - Calendar\n\n| Type            | Method                    | Description                                       |\n|-----------------|---------------------------|---------------------------------------------------|\n| static Calendar | ofThisMonth()             | Create a Calendar object for this month.          |\n| Calendar        | nextMonth()               | Returns a Calendar object for the next month.     |\n| Calendar        | lastMonth()               | Returns a Calendar object for the next month.     |\n| number          | getYear()                 | Get the calendar year.                            |\n| number          | getMonth()                | Get the calendar month.                           |\n| CalendarWeek[]  | getWeeks()                | Get an array of the weeks of the month.           |\n| boolean         | isThisMonth(month: Month) | Check if the month of the argument is this month. |\n\n\n### 3.2 - CalendarWeek\n\n| Type           | Method      | Description                                                        |\n|----------------|-------------|--------------------------------------------------------------------|\n| CalendarDate[] | getDates()  | Get an array of CalendarDate from Sunday to Saturday for the week. |\n\n\n### 3.3 - CalendarDate \n\n| Type    | Method     | Description                 |\n|---------|------------|-----------------------------|\n| number  | toNumber() | Get the date of Calendar.   |\n| number  | toMonth()  | Get the month of Calendar.  |\n| boolean | isToday()  | Check if the date is today. |\n\n","readmeFilename":"README.md"}