{"_id":"@calj.net/jdates","_rev":"33-d4e0e634d9f336d6a54bcf1b6ce895b9","name":"@calj.net/jdates","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.1":{"name":"@calj.net/jdates","version":"1.0.1","description":"The Jewish Dates library from https://CalJ.net","homepage":"https://github.com/zzgab/calj-jdates","scripts":{"build":"npm run clean && npm run build:lib && npm run build:browser","build:browser":"rollup -c config/rollup.config.js","build:cjs":"tsc -p config/tsconfig.cjs.json","build:esm":"tsc -p config/tsconfig.esm.json","build:lib":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist coverage *.tgz","esm-ext":"config/fixup-esm-ext.sh","fixup-package":"npm run fixup-package-esm && npm run fixup-package-cjs","fixup-package-cjs":"echo '{\"type\": \"commonjs\"}' > dist/lib/cjs/package.json","fixup-package-esm":"echo '{\"type\": \"module\"}' > dist/lib/esm/package.json","package-e2e":"test/e2e/e2e.sh","postbuild":"npm run fixup-package && npm run replace-version && npm run esm-ext ","prepack":"cp README.md dist/","prettier":"prettier -w package.json config/tsconfig.json **/*.json **/*.ts *.js */**/*.ts","replace-version":"config/replace-version.sh $npm_package_version","test":"jest --config config/jest.config.js --coverage"},"devDependencies":{"@rollup/plugin-terser":"^0.4.0","@rollup/plugin-typescript":"^11.0.0","@types/jest":"^29.4.0","jest":"^29.4.3","prettier":"^2.8.4","rollup":"^3.15.0","rollup-plugin-iife-namespace":"^0.0.2","ts-jest":"^29.0.5","tslib":"^2.5.0","typescript":"^4.9.5"},"keywords":["Jewish","Calendar","Hebrew","Dates","Parasha"],"author":{"name":"Gabriel Zerbib","email":"gabriel@calj.net"},"license":"ISC","main":"dist/cdn/calj.min.js","module":"dist/lib/esm/index.js","types":"dist/lib/types/index.d.ts","exports":{"node":{"import":"./dist/lib/esm/index.js","require":"./dist/lib/cjs/index.js"},"default":"./dist/cdn/calj.min.js"},"gitHead":"c2c92e60a629f3624d2c5e85de6b5e1a3b71782a","_id":"@calj.net/jdates@1.0.1","_nodeVersion":"14.19.3","_npmVersion":"9.5.0","dist":{"integrity":"sha512-W3pD/LiPNUJqfwaKAsakc9pF93LYutdYtTeOn8Appdfxxv5jP0dJIhwfrMVTxY2NFYsBZtyUTXJOCaFi7VdS9Q==","shasum":"d2ec0a28ecc57fca2ed1da8bb9f914be04ff2d44","tarball":"https://registry.npmjs.org/@calj.net/jdates/-/jdates-1.0.1.tgz","fileCount":46,"unpackedSize":196693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+cD5HO5Xs3mFKkFcCFVPPzPUo1U3jYNrBuIMNSVkZIAiEAw6yOz8CCyrEsU2OX3DGy2u1hb3jFEyJpl+V/y0myUUQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/QI7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQmA//V3tIcj9jfg3RJ2y2QFrYNs2hpslj0Gh7vZ6cXKZY6HNN/QRZ\r\nQhy/78ELf9qCApl58J0fm2W7gLX9PyYQ1sWkuajS0CN+I66N0orqroi6M11+\r\nEQYkjErC7BLrDgx1+WP8V73g30t2t4+DEWRwMilyGITyT/jA5kvtU6emGtBC\r\nNDvP3cgzsMKxWuTDFEL3CRbhF/om+wZsnY9UE3OOOtIwUkQGO9tBfaqlpp+L\r\n8UoPTnt/f+1K9eggkpmicNARYtsQZF1Lu3bP46Pm6nZM77xO8MJL4mT/z3gQ\r\nwBTovYAEx4TXAtHWafL4nMY04hwy2meOHh0xKM/2nKucHWa8qQZZq/6sfns1\r\nCJSxNaZ7FqKf8KMFVvmxwB5pjbnqesBINyUctOzXLFtcc4PqN8JxexSzPbBD\r\nJ8siU7XlXaflfIQHgSmsM2edARFha/tqnoMu2dZJq5Z9VD9eseL350oZM4JU\r\nlS68uT0X2HdJGpjDuTcIu2SfUbZfHXBJq60iojSXoBF362BpIuh+C8COpAJj\r\nhbJEb651lV39w3C/YBEyu1y8uIcTb+KEiut0SyIZcOg6GJetwDabMzdmFh1r\r\nPChAZknhS2pdjPOGRFARcytPL4pWmBPn3zSVcHOad1s7etUaka+oRVwt1Jba\r\ni/B0TYWtgONZPgrbrj8YnAE5Z/IQdLFYc2c=\r\n=8vlH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zzgab","email":"gabriel.zerbib@gmail.com"},"directories":{},"maintainers":[{"name":"zzgab","email":"gabriel.zerbib@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jdates_1.0.1_1677525563203_0.8881278488638158"},"_hasShrinkwrap":false},"1.1.0":{"name":"@calj.net/jdates","version":"1.1.0","description":"The Jewish Dates library from https://CalJ.net","homepage":"https://github.com/zzgab/calj-jdates","scripts":{"build":"npm run clean && npm run build:lib && npm run build:browser","build:browser":"rollup -c config/rollup.config.js","build:cjs":"tsc -p config/tsconfig.cjs.json","build:esm":"tsc -p config/tsconfig.esm.json","build:lib":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist coverage *.tgz","esm-ext":"config/fixup-esm-ext.sh","fixup-package":"npm run fixup-package-esm && npm run fixup-package-cjs","fixup-package-cjs":"echo '{\"type\": \"commonjs\"}' > dist/lib/cjs/package.json","fixup-package-esm":"echo '{\"type\": \"module\"}' > dist/lib/esm/package.json","package-e2e":"test/e2e/e2e.sh","postbuild":"npm run fixup-package && npm run replace-version && npm run esm-ext ","prepack":"cp README.md dist/","prettier":"prettier -w package.json config/tsconfig.json **/*.json **/*.ts *.js */**/*.ts","replace-version":"config/replace-version.sh $npm_package_version","test":"jest --config config/jest.config.js --coverage"},"devDependencies":{"@rollup/plugin-terser":"^0.4.0","@rollup/plugin-typescript":"^11.0.0","@types/jest":"^29.4.0","jest":"^29.4.3","prettier":"^2.8.4","rollup":"^3.15.0","rollup-plugin-iife-namespace":"^0.0.2","ts-jest":"^29.0.5","tslib":"^2.5.0","typescript":"^4.9.5"},"keywords":["Jewish","Calendar","Hebrew","Dates","Parasha"],"author":{"name":"Gabriel Zerbib","email":"gabriel@calj.net"},"license":"ISC","main":"dist/cdn/calj.min.js","module":"dist/lib/esm/index.js","types":"dist/lib/types/index.d.ts","exports":{"node":{"import":"./dist/lib/esm/index.js","require":"./dist/lib/cjs/index.js"},"default":"./dist/cdn/calj.min.js"},"gitHead":"2ef2de94bdd961ae4fc5a12539749bad8f61b8f3","_id":"@calj.net/jdates@1.1.0","_nodeVersion":"14.19.3","_npmVersion":"9.5.0","dist":{"integrity":"sha512-wgYwSUDlmQMlaZxBnNVz4WwJUv+7Rn8jgWKYhLGFt7FZGqKzdsmt9W8ScIZu+JbUWp0Z28tgI0Xi6DQb5bP5hA==","shasum":"a5b74f64d4eb9baa7d659cfe7f3c619452d91140","tarball":"https://registry.npmjs.org/@calj.net/jdates/-/jdates-1.1.0.tgz","fileCount":49,"unpackedSize":195290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLJEGeIg/+HtrAHKx+6FnIE2n5/xeftkNSHlwrRGpv4AiAlM4GqdLPMXbAzAQLsMqVkepLwf4qucWE4uuMOIlqZJQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAQY/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraaA/9HnvwW8DV/clvXTBwGpr36eh0EJSleZm2iBiqxNE/jbpzXEP/\r\n1V3ftwwA8dXxVzU3vUM3tsPQbpkVwdTVNDK0j2+SIXf9bHR4LqaFLzwPt860\r\ntzqX3ZUi+7aPB+pG/KNsWhwRVm/p1PhfvIvdngGutp3YbY4r2/rN1e8Yk0uQ\r\n8RMiqWllRvwxRTmzy6J1h/3gBgLiqCa8AlVRO/hcKP+KWp4v/cUzG3YnLVT1\r\nWtwweCF8cVZAWXi5tGfVMotCu+bEBunGGVu/0QaO2XgzyGySMQ8QBREdHYx0\r\n2iNRXQjazvvLdFEfzBoeuUu57wTknuqVhgy7pTNjYaD1lEYjD0DIDYXZUGWf\r\nJeywhmCh4osBRuksu2lsjx/EqmiBPO+IAd3K51VF8ds32dkahS35GLrIylYj\r\ncp5l6DYNlljEECmOX3AZR9gEl6L19c96RmArZt3laQiappnfc9oU2e3+Jyv5\r\njh+NDqSQI2m4+fRJG7M1loCPmjwbrMU7K/0588ieYEsp6fUd2th77LCzDM9q\r\naG7SlYjg5Ul8Nd03vrcNVzza4SQRUz3cYJUQMNlEQZ5yfPoDu7CztpDfbrn6\r\n384QOTay6MuJXB6lvpKgXa8xeADa2IqsxFvwY9HvB/FinbYVGDITk7ldtiYk\r\nmgyCdnVu+NyT3z9lhuquxohMp/R06isfph0=\r\n=mLb3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zzgab","email":"gabriel.zerbib@gmail.com"},"directories":{},"maintainers":[{"name":"zzgab","email":"gabriel.zerbib@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jdates_1.1.0_1677788735067_0.04108288616852951"},"_hasShrinkwrap":false},"1.1.1":{"name":"@calj.net/jdates","version":"1.1.1","description":"The Jewish Dates library from https://CalJ.net","homepage":"https://github.com/zzgab/calj-jdates","scripts":{"build":"npm run clean && npm run build:lib && npm run build:browser","build:browser":"rollup -c config/rollup.config.js","build:cjs":"tsc -p config/tsconfig.cjs.json","build:esm":"tsc -p config/tsconfig.esm.json","build:lib":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist coverage *.tgz","esm-ext":"config/fixup-esm-ext.sh","fixup-package":"npm run fixup-package-esm && npm run fixup-package-cjs","fixup-package-cjs":"echo '{\"type\": \"commonjs\"}' > dist/lib/cjs/package.json","fixup-package-esm":"echo '{\"type\": \"module\"}' > dist/lib/esm/package.json","package-e2e":"test/e2e/e2e.sh","postbuild":"npm run fixup-package && npm run replace-version && npm run esm-ext ","prepack":"cp README.md dist/","prettier":"prettier -w package.json config/tsconfig.json **/*.json **/*.ts *.js */**/*.ts","replace-version":"config/replace-version.sh $npm_package_version","test":"jest --config config/jest.config.js --coverage"},"devDependencies":{"@rollup/plugin-terser":"^0.4.0","@rollup/plugin-typescript":"^11.0.0","@types/jest":"^29.4.0","jest":"^29.4.3","prettier":"^2.8.4","rollup":"^3.15.0","rollup-plugin-iife-namespace":"^0.0.2","ts-jest":"^29.0.5","tslib":"^2.5.0","typescript":"^4.9.5"},"keywords":["Jewish","Calendar","Hebrew","Dates","Parasha"],"author":{"name":"Gabriel Zerbib","email":"gabriel@calj.net"},"license":"ISC","main":"dist/cdn/calj.min.js","module":"dist/lib/esm/index.js","types":"dist/lib/types/index.d.ts","exports":{"node":{"import":"./dist/lib/esm/index.js","require":"./dist/lib/cjs/index.js"},"default":"./dist/cdn/calj.min.js"},"gitHead":"2ef2de94bdd961ae4fc5a12539749bad8f61b8f3","_id":"@calj.net/jdates@1.1.1","_nodeVersion":"14.19.3","_npmVersion":"9.5.0","dist":{"integrity":"sha512-Tec2g/lZx4LSWivT34yhtVuc6nJ/Xhfc+fQxikLMQ8H6BtpYbySrPx7nYPG+CRlysezV6zpJKbH/wpKalXhBRw==","shasum":"97d896c096831366e104ea3a2c322461fe1cdc83","tarball":"https://registry.npmjs.org/@calj.net/jdates/-/jdates-1.1.1.tgz","fileCount":45,"unpackedSize":133553,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBCVgpWxylqfBlonH3ZeUCN5u7D5CIMWhHv+s96ys4rgIgAmjV8cuXPxiMJ48Z+WjbQwi1e3DXI7DAxNJpVKdE8Ck="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAQyWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3YQ//b06ufIbKbwlylsPkaTwNLDOit7RcAntk4jkL+/kyHotQhfRj\r\nHHB8XL+1hYGZ3txA69WoJymdpnV0AMrftPBgUeV7Ue02QjPzX9juIK7G/mMU\r\nxCb1JBi2qoYRjNswloOApT+uB8C406piQ+3fkJVdjBoVjKLRKBvG+iiNaPLl\r\nlwNAyLlRs4yhSLhiNXZqnTql8cP0OyGKdLyio3IJxJLQMe37LPUEIxQuOtBD\r\nDFMCWlVrhScaQz2BV/8RSMGYCjoQjrEFNsU30NuQBkiVOwGXiQpOuxaMXU9w\r\n2CUboSVDdRVCZDjNmMXSd7Rp3tfjvt8S5hQfVftsW6bgB9OA2hg8n0AtGmEG\r\nm/PHZsqI4iL8I0A5Y0B+QVqwbdbjtZUW2y6zQEz3kzFkA4y76Y8tAE8bqxb+\r\n0ooxthqOTs+5Z4ldcmy/bqTjD9FTziWffav8BODdkcXw12smaGwQzWXWCPXw\r\nYznR95Mr/tddyvyUZ7PC2swc0/tkIU+B1j7JTLeZmidA3/PXR1skq3sGBB4l\r\n+qj3QB7PSCf+8CzvGKZYJw5EH+YrYjbqtlD9i009GmTX5xGzhjK8BzWBF9hv\r\n5I33NWb5jGP0VA20HkWhnl5qU+kmNmemn+uEX5KENEQdaPTtaIKinPic6DI3\r\nioeysJtoII2yfeeJWsz0DZyrgJTEPUaKGTo=\r\n=BhDn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zzgab","email":"gabriel.zerbib@gmail.com"},"directories":{},"maintainers":[{"name":"zzgab","email":"gabriel.zerbib@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jdates_1.1.1_1677790358620_0.15695360235280553"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-20T17:25:03.781Z","1.0.0-alpha7":"2023-02-20T17:25:04.149Z","modified":"2023-03-02T20:52:38.906Z","1.0.0-alpha.8":"2023-02-20T17:43:52.136Z","1.0.0-alpha.10":"2023-02-21T08:46:13.468Z","1.0.0-alpha.11":"2023-02-21T08:54:56.150Z","1.0.0-alpha.12":"2023-02-21T09:18:28.519Z","1.0.0-alpha.13":"2023-02-22T14:08:08.198Z","1.0.0-alpha.14":"2023-02-22T19:25:06.251Z","1.0.0-alpha.15":"2023-02-23T12:18:49.594Z","0.0.1":"2023-02-23T19:47:13.996Z","1.0.1-alpha.1":"2023-02-23T21:32:12.598Z","1.0.1-alpha.2":"2023-02-23T22:01:26.156Z","1.0.1-alpha.3":"2023-02-24T12:59:23.178Z","1.0.1-beta.1":"2023-02-25T19:28:29.557Z","1.0.1-beta.2":"2023-02-26T14:24:36.070Z","1.0.0":"2023-02-26T19:29:54.970Z","1.0.1":"2023-02-27T19:19:23.470Z","1.0.2":"2023-02-28T18:59:32.782Z","1.1.0":"2023-03-02T20:25:35.211Z","1.1.1":"2023-03-02T20:52:38.810Z"},"maintainers":[{"name":"zzgab","email":"gabriel.zerbib@gmail.com"}],"description":"The Jewish Dates library from https://CalJ.net","homepage":"https://github.com/zzgab/calj-jdates","keywords":["Jewish","Calendar","Hebrew","Dates","Parasha"],"author":{"name":"Gabriel Zerbib","email":"gabriel@calj.net"},"license":"ISC","readme":"# @calj.net/jdates\n[![npm version](https://img.shields.io/badge/dynamic/json?logo=npm&url=https://registry.npmjs.org/-/package/@calj.net/jdates/dist-tags&label=npm&color=success&query=$.latest)](https://www.npmjs.com/package/@calj.net/jdates)\n\nThe Jewish dates toolbox used on [https://calj.net](https://calj.net).\n- Manipulate Jewish and Gregorian dates\n- Transform dates between the two calendar systems\n- Compute the weekly Parasha\n- Compute the dates of the Holidays\n\n![CalJ.net](https://calj.net/img/title.jpg)\n\n## Modes\nThe library can be used in [Node](https://www.npmjs.com/package/@calj.net/jdates) (both **ESM** and **CommonJS**) and in the [browser](https://cdn.jsdelivr.net/npm/@calj.net/jdates):\n\n### Node ESM\n\n~~~js\nimport { GDate, HDate, Festival, Parasha } from \"@calj.net/jdates\";\n~~~\n\n### Node CommonJS\n\n~~~js\nconst { GDate, HDate, Festival, Parasha } = require(\"@calj.net/jdates\");\n~~~\n\n### Browser\n\n~~~html\n<script\nsrc=\"https://cdn.jsdelivr.net/npm/@calj.net/jdates\">\n</script>\n\n<script>\nconst {\n  Festival,\n  GDate,\n  HDate,\n  Parasha,\n} = CalJ;\n</script>\n~~~\n\n## Examples\n\n~~~js\nconsole.log(\"This week's Parasha in Israel:\",\n  new HebrewParashaLocalizer().sidra(Parasha.make(\n    GDate.today(), ParashaScheme.ISRAEL\n  ))\n);\n\nconst h = HDate.make(GDate.make(9, 2, 2023));\nconsole.log(\"9 Feb 2023 is: \",\n  `${h.getDay()} ${h.getMonthName()} ${h.getYear()}`);\n\nconst yomKippur = Festival.yomKippur(5780);\nconst gYomKippur = GDate.make(yomKippur.getStartDate());\nconsole.log(\"Yom Kippur 5780 is: \", `${gYomKippur}`);\n~~~\n\n## API\n\nYou can instantiate [GDate](#GDate) and [HDate](#HDate) immutable objects, both extending the `JDate` abstract.\n\n### GDate\n\n* `static GDate.`**make**`(date: Date): GDate`\n\n  \\\n  Obtain a Gregorian date from a JavaScript Date instance.\n\n\n* `static GDate.`**make**`(jdate: JDate): GDate`\n\n  \\\n  Obtain a Gregorian date from another instance, which may be of class [GDate](#GDate) (copy), or [HDate](#HDate) (conversion).\n\n\n* `static GDate.`**make**`(day: number, month: number, year: number): GDate`\n\n  \\\n  Obtain a [GDate](#GDate) instance positionned on the specified Gregorian date elements.\n\n### HDate\n\n* `static HDate.`**make**`(date: Date): HDate`\n\n  \\\n  Obtain a Jewish date from a JavaScript Date instance.\n\n\n* `static HDate.`**make**`(jdate: JDate): HDate`\n\n  \\\n  Obtain a Jewish date from another instance, which may be of class [HDate](#HDate) (copy), or [GDate](#GDate) (conversion).\n\n\n* `static HDate.`**make**`(day: number, month: `[HDateMonth](#HDateMonth)`, year: number): HDate`\n\n  \\\n  Obtain an [HDate](#HDate) instance positionned on the specified Jewish date elements.\n\n### HDateMonth\n\nAn `enum` of the Jewish months:\n\n~~~\n{\n    TISHRI,\n    CHESHVAN,\n    KISLEV,\n    TEVET,\n    SHVAT,\n    ADAR,\n    ADAR2,\n    NISSAN,\n    IYAR,\n    SIVAN,\n    TAMUZ,\n    AV,\n    ELUL,\n}\n~~~\n\n### JDate\n\n - `.eq`, `.lt`, `.lte`, `.gt`, `.gte (other: JDate): boolean`\n \n    \\\n    Boolean functions accepting an instance of `JDate`, to check respectively\n    if the argument is `==`, `<`, `<=`, `>`, `>=` to `this` instance.\n    The comparison is done on the date itself, as a point in time, rather than\n    equality of the objects or any other date components that represent the date\n    in one system or the other.","readmeFilename":"README.md"}