1.0.1 • Published 5 years ago

daf-converter v1.0.1

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

Daf Converter

Convert daf pages to numbers and vice-versa

A daf is a the hebrew word for a page. It usally refers to pages in the talmud. Pages are numbered using Gematriya/Gematria, or perhaps more accurately, Hebrew numerals. It is a system of writing numbers as Hebrew letters. This JavaScript module allows for easy conversion between gematriya and JavaScript Number types.

This code was originally written for js-gematriya which is an abastraction from hebcal/hebcal-js.

Install

Install daf-coverter by running npm install daf-converter

API

On the client side, the API is available through the global function convertDaf. In Node, require('convertDaf').

A single function is available. Pass it a Number or String. Given a number, it will return the string representation. Given a daf string, it will return the number it represents. Here is an example:

convertDaf(118)
> 'קיח'
convertDaf('עד')
> 74

License

Licensed MIT