Skip to content

shalstein/daf-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 or from it's Github repository by running git clone git@github.com:peacestone/daf-converter.git

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

About

Convert daf pages to numbers and vice-versa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published