{"_id":"gematriya","_rev":"12-b9b411d31bbd181eca1690e9a56a0785","name":"gematriya","description":"Convert numbers to gematriya representation, and vice-versa.","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"gematriya","version":"1.0.0","author":{"name":"Eyal Schachter","url":"https://github.com/Scimonster"},"description":"Convert numbers to gematriya representation, and vice-versa.","keywords":["hebrew","gematriya","numbers"],"main":"gematriya.js","homepage":"https://github.com/Scimonster/js-gematriya","bugs":{"url":"https://github.com/Scimonster/js-gematriya/issues"},"license":"MIT","repository":{"type":"git","url":"https://github.com/Scimonster/js-gematriya.git"},"gitHead":"91329adda6c1cce6e6d168291fdd79093fe32c6d","_id":"gematriya@1.0.0","scripts":{},"_shasum":"ad40a22a4bb8e71395545c0096b8d537c05ce109","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"},"maintainers":[{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"}],"dist":{"shasum":"ad40a22a4bb8e71395545c0096b8d537c05ce109","tarball":"https://registry.npmjs.org/gematriya/-/gematriya-1.0.0.tgz","integrity":"sha512-nigIOALC0xmUfHtrpceZVK8nmJIRFPpzzNBhu2ogfg1nRUmKF2Cda8gp/s4eRUdfUpox5FHguYRvloxVPVNvXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRVUfLBP0dg1PEN6KO2UFui6HlSbHAYLbH2AeEBCOaPAiEA9BWdZxezUEJ/jaM2Ga+Sv3VLQmXpRL55qLXdK2lfFGU="}]},"directories":{}},"1.0.1":{"name":"gematriya","version":"1.0.1","author":{"name":"Eyal Schachter","url":"https://github.com/Scimonster"},"description":"Convert numbers to gematriya representation, and vice-versa.","keywords":["hebrew","gematriya","numbers"],"main":"gematriya.js","homepage":"https://github.com/Scimonster/js-gematriya","bugs":{"url":"https://github.com/Scimonster/js-gematriya/issues"},"license":"MIT","repository":{"type":"git","url":"https://github.com/Scimonster/js-gematriya.git"},"_id":"gematriya@1.0.1","dist":{"shasum":"0f45949aee67227d06ddffc7e2febf4914876c39","tarball":"https://registry.npmjs.org/gematriya/-/gematriya-1.0.1.tgz","integrity":"sha512-AG8DVjbv1Ap9b9xbnvVYXjI9LwN8c7KH4KIsIpZXzArjzvTpPRzhQ7Y4L+s0PpThUF+VTX3ThjRCjbL/Ia4y1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC65Px9aIXfzE6B1xdcpm5fAkQbTfastGHwuRreMiMnIAiEAtpLl3RXi4HkidRB7Jmoc+oWcBYDvK73X/Hzg52igMOg="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"},"maintainers":[{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"}],"directories":{}},"2.0.0":{"name":"gematriya","version":"2.0.0","author":{"name":"Eyal Schachter","url":"https://github.com/Scimonster"},"description":"Convert numbers to gematriya representation, and vice-versa.","keywords":["hebrew","gematriya","numbers"],"main":"gematriya.js","homepage":"https://github.com/Scimonster/js-gematriya","bugs":{"url":"https://github.com/Scimonster/js-gematriya/issues"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Scimonster/js-gematriya.git"},"gitHead":"e82442c74b74f06901146e1ea78eaecde886766b","_id":"gematriya@2.0.0","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"},"dist":{"integrity":"sha512-i+G3iGTn/vmojZkvS0dDPcw46tREqS10mztDOVoG6AACZzqp0eOpvIYaAOqZEiH4ee0Rkgt1Sf6jWM1GobJIeg==","shasum":"bdc93285a84f05e51fa962b18dc44beceb0f38c3","tarball":"https://registry.npmjs.org/gematriya/-/gematriya-2.0.0.tgz","fileCount":5,"unpackedSize":7591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZd3dCRA9TVsSAnZWagAA3wcP/36B2IE+UyTx99PbpvSe\nXG8FsI3ipvZCgo1Lx+C5RevvHJlF/GDw6pfuWftk2frT1owoHJER8n6PgvgW\ng8m6IJo3HKtu2WLgO3EhreuKiMcy9ynWE4MBriIPRRNkQpDL0s5glOy3zgoG\nkk3P44i8YwXnxEgdzdIQgtpocBM2gL/MKpMxeJZIoRQbNtkEz5lnr0qx1K5L\nO+SWm0fHUgS4Jj5jrK4jCIX4joseDuX9Ct85+/s7CIj8uOqT2kkjITJEesfq\nmjzpD/0MjR1e3QLcP7b6Gyik49MU0UmyNr18hSjbobJy34ffqR9V3MTkvqPu\nVH3Jbo6xFQXLpYvhPdiF0zyGo+aqXwKyufytSxodIOx9utXUU9NbG+nTacnr\nhseKb5ghrTvnQo5Opfx4ODt8qMbI4nV8ttTnopH2yXvMfTTVv1dC83HyjbEH\nePp14ycIo8NIiwGZkpCq2sEZ7ZObiC9sGICPpY/2koE3Q0riy3hLRVxVZ/fX\nQA8ahwphpTd0HosWoBnn3VvGcNBLXeVWPYbIge/OyZjKFvkrnRYD60ShAgAL\ni4DYHn0LAd097rU/RZ6It1ibxCYKz4BtadgaXs0N7roVAH6OlZh0UaoY9TXa\nCwjUgBq2DfVirrXt7XCRR0viGXEyDOQv3e5DId3FWR1kEWTneA14s92wc2sS\nSuVj\r\n=i3p2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtMhTHRSczIBhcaIy8nTo+1uNhg8D1hHVmkYgeMf1TQAiBShmC4eDTYZP2+K8yrMsSOyyD+7cn0HYdeqbYH4WzzmQ=="}]},"maintainers":[{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gematriya_2.0.0_1550179804311_0.5712516274732351"},"_hasShrinkwrap":false}},"readme":"# Gematriya\n\n[Gematriya/Gematria](https://en.wikipedia.org/wiki/Gematria), or perhaps more accurately, [Hebrew numerals](https://en.wikipedia.org/wiki/Hebrew_numerals), is a system of writing numbers as Hebrew letters. This JavaScript module allows for easy conversion between gematriya and JavaScript `Number` types.\n\nThis code was originally written for [hebcal/hebcal-js](https://github.com/hebcal/hebcal-js).\n\n## Install\n\nInstall gematriya from NPM, bower, or just take the `gematriya.js` script from this repo.\n\n```bash\nnpm install gematriya\nbower install gematriya\n```\n\n## API\n\nOn the client side, the API is available through the global function `gematriya`. In Node, `require('gematriya')`.\n\nA single function is available. Pass it a `Number` or `String`. Given a number, it will return the string representation. Given a gematriya string, it will return the number it represents.\n\nWhen passing a string, by default, it just adds up the numbers, regardless of place. By passing `{order: true}` as a second parameter, it will treat it as being ordered, as per the output (see below).\n\nWhen passing a number, an optional options object is available as a second parameter. Setting a number as a value for the `limit` key will limit the length of the returned string to a number of digits. Setting false as the value for the `punctuate` key will remove double and single quotation marks in the returned string. Setting `geresh` to false will use ASCII single/double quotes instead of Hebrew geresh/gershayim Unicode characters. Like this:\n\n```js\ngematriya(5774) // התשע״ד - ordinary\ngematriya(5774, {limit: 3}) // תשע״ד - cropped to 774\ngematriya(5774, {limit: 7}) // התשע״ד - kept at 5774\ngematriya(5774, {punctuate: false}) // 'התשעד' - removed quotation marks\ngematriya(5774, {punctuate: true}) // 'התשע״ד' - with quotation marks\ngematriya(5774, {geresh: false}) // 'התשע\"ד' - with quotation marks\ngematriya(5774, {punctuate: false, limit: 3}) // 'תשעד' - options can be combined\ngematriya(3) // 'ג׳' - note the geresh is RTL\ngematriya(3, {geresh: false}) // - \"ג'\" - the apostrophe is not\ngematriya('התשעד', {order: true}) // 5774 - treats the characters as an ordered number\ngematriya('התשעד', {order: false}) // 779 - Adds up all the characters\n```\n\n## License\n\nLicensed MIT.\n","maintainers":[{"name":"scimonster","email":"tehalmightyscimonster@gmail.com"}],"time":{"modified":"2022-06-18T05:14:58.645Z","created":"2014-06-09T13:48:41.039Z","1.0.0":"2014-06-09T13:48:41.039Z","1.0.1":"2014-11-20T21:45:23.179Z","2.0.0":"2019-02-14T21:30:04.461Z"},"homepage":"https://github.com/Scimonster/js-gematriya","keywords":["hebrew","gematriya","numbers"],"repository":{"type":"git","url":"git+https://github.com/Scimonster/js-gematriya.git"},"author":{"name":"Eyal Schachter","url":"https://github.com/Scimonster"},"bugs":{"url":"https://github.com/Scimonster/js-gematriya/issues"},"license":"MIT","readmeFilename":"README.md","users":{"newmedia":true,"caffellatte":true}}