GithubHelp home page GithubHelp logo

daf-converter's Introduction

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 [email protected]: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

daf-converter's People

Contributors

shalstein avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.