{"_rev":"26-71546bbfe9c0360958cdf5ba861064a8","time":{"created":"2023-02-11T00:15:51.292Z","1.0.0":"2023-02-08T21:42:39.166Z","modified":"2023-02-11T00:15:51.764Z","1.0.1":"2023-02-08T22:01:56.480Z","1.0.2":"2023-02-08T22:05:49.499Z","1.0.3":"2023-02-08T22:07:56.658Z","1.1.0":"2023-02-09T18:13:34.302Z","1.1.1":"2023-02-09T18:18:08.027Z","1.1.2":"2023-02-09T18:20:36.772Z","0.1.0":"2023-02-09T20:22:18.124Z","1.5.0":"2023-02-11T00:15:51.518Z"},"_id":"@flbkme/calendar-core","name":"@flbkme/calendar-core","dist-tags":{"latest":"1.5.0"},"versions":{"1.5.0":{"name":"@flbkme/calendar-core","version":"1.5.0","description":"simple calendar core","main":"lib/index.js","scripts":{"format":"prettier --write \"src/**/*.ts\"","lint":"tsc --project ./tsconfig.json --noEmit && eslint","test":"echo \"Error: no test specified\" && exit 1","build":"npm run format; tsc","start":"npm run build; node lib"},"repository":{"type":"git","url":"git+https://github.com/flbkme/calendar-core.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/flbkme/calendar-core/issues"},"homepage":"https://github.com/flbkme/calendar-core#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.51.0","@typescript-eslint/parser":"^5.51.0","eslint":"^8.33.0","prettier":"^2.8.4","typescript":"^4.9.5"},"types":"./lib/index.d.ts","gitHead":"82e991ccf42eedba185b19a388cf85d88dd65eda","_id":"@flbkme/calendar-core@1.5.0","_nodeVersion":"19.6.0","_npmVersion":"9.4.0","dist":{"integrity":"sha512-CFtgmgFw7BSZTAsuRV8PAB2mSgae3+r9x9xZITSqEVZeZJE6F0YtfG/NhY/+RRXNf7wjugk0BnM6fqXyZiZLDA==","shasum":"79e52767d5395ef964de4568dcc09c579ff11500","tarball":"https://registry.npmjs.org/@flbkme/calendar-core/-/calendar-core-1.5.0.tgz","fileCount":13,"unpackedSize":14112,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3YYLrJeGmcaJNYpJXPLQUm+ig34AcEYkmh74D4MuyFAIhAMnM7EeHvkUPT721eEAbJIDQPjHChFgXuLre4cesG6Fq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5t43ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAMg/9GljCLY4Tgbn9v//ixSpFZ29APU+BeOgu+g89fbs+s/PMTt/x\r\nWjbgoYPyRe463wrHtfI7aTc2xAEKjRsIkHvTyV9tc6ohVwyyNJXRBCJFLWKQ\r\noMQ3FtekzMymw6f6TIOHiR/6R+c+dQkLYk8u7csLn7aU/149AXj6/cVmAmKp\r\nC40PDMR6r6MKTcQBT3GBi9I0Mc4ZRsOyOXfl39k1uInhhsaMhj8w2dKLlJDS\r\nW1Nv9X6e1kFchW/WW3v50ayhUAdx8/g7eonCdAhaSmBhZP0Hh6V/rTarCRsJ\r\nd9zwcwZJQupX7y57pL8i2CmGrTKr6Na6R5VDKPRYgjUlk9MtPtqZPstQ/FgF\r\nMaWKv1jZilEU+cCEXSA48juBXXRX2lfIcYnytGrB1OUqrAHf8punnROTNaDN\r\ns9K6x4HsaUmdc7ttj7FD8y6PDkotQZomR51gJOTObz02n6UeoBKacq1CHopJ\r\nWnG1K6U0YRoVoa2a4LMpVXO6d9aMFu4yKxh71h6kIghcgAA3W63PcDz1u6/n\r\ndjbLlUt65zeduzHEM52HD0ZbvdSbOrb3skGTWGqXCwKFQXHih5i0ADNr3S2b\r\nPy76hMsyoWOEQriZCw/R/kE5T85qckamkBwGRXsWqMf4PfMXDQwA1ezuFxB9\r\nSwyrdBU3AeH1d1l4RHdqnKy/4fFNqHTf//I=\r\n=LxAT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"flbkme","email":"vonavigogor@gmail.com"},"directories":{},"maintainers":[{"name":"flbkme","email":"vonavigogor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/calendar-core_1.5.0_1676074551353_0.4557696431963201"},"_hasShrinkwrap":false}},"maintainers":[{"name":"flbkme","email":"vonavigogor@gmail.com"}],"description":"simple calendar core","homepage":"https://github.com/flbkme/calendar-core#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/flbkme/calendar-core.git"},"bugs":{"url":"https://github.com/flbkme/calendar-core/issues"},"license":"ISC","readme":"# Calendar core\nSimple calendar core\n\n\n## Usage\n\n```js\nimport { Calendar } from '@flbkme/calendar-core'\n\nconst calendar = new Calendar();\n```\n\nor provide optional config to constructor:\n\n```js\nconst calendar = new Calendar(\n  year: 2023, // current year by default\n  month: 2, // current month by default\n  firstDayOfWeek: 'mon', // 'sun' by default\n  fixedWeeks: true, // false by default\n  hideNotIncluded: true, // false by default\n);\n```\n\n\n## Get calendar month\n\nTo get month card is set in config use `getCard` method:\n\n```js\ncalendar.getCard();\n```\n\nWill return:\n\n```js\n{\n  currentMonth: {\n    year: 2023,\n    month: 2,\n    dates: [\n       1,  2,  3,  4,  5,  6,  7,  8,\n       9, 10, 11, 12, 13, 14, 15, 16,\n      17, 18, 19, 20, 21, 22, 23, 24,\n      25, 26, 27, 28\n    ]\n  },\n  prevMonth: {\n    year: 2023,\n    month: 1,\n    // prevoius dates which has first month week\n    dates: [ 28, 29, 30 ]\n  },\n  nextMonth: {\n    year: 2023,\n    month: 3,\n    // next dates which has last month week\n    dates: [ 1, 2, 3, 4 ]\n  }\n}\n```\n\n\n## Year and month\n\nProvide `year` and `month` to values to `setCard` method config object:\n\n```js\ncalendar.setCard({ year: 2023, month: 10 })\n```\n\n> Tip: providing bolean `update` value to `setCard` method config will return result of `getCard` with updated calendar core config!\n\n\n## First day of the week\n\nProvide `day` to `setFirstDayOfWeek` method config object:\n\n```js\ncalendar.setFirstDayOfWeek({ day: 'mon' })\n```\n\n> Tip: providing bolean `update` value to `setFirstDayOfWeek` method config will return result of `getCard` with updated calendar core config!\n\n\n## Get fixed weeks in card\n\n\nProvide `fixed` to `setFixedWeeks` method config object to get 6 weeks in month\n*(42 days in total every time)*:\n\n```js\ncalendar.setFixedWeeks({ fixed: true })\n```\n\n> Tip: providing bolean `update` value to `setFixedWeeks` method config will return result of `getCard` with updated calendar core config!\n\n## Hide not in month dates\n\nProvide `hide` to `setHideNotInluded` method config object:\n\n```js\ncalendar.setHideNotInluded({ hide: true })\n```\n\n> Tip: providing bolean `update` value to `setHideNotInluded` method config will return result of `getCard` with updated calendar core config!\n","readmeFilename":"README.md"}