1.0.0 • Published 1 year ago

gematria.tools v1.0.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

Gematria.Tools

Gematria.Tools is a TypeScript library for calculating the Gematria of Hebrew and English words and strings.

Installation

npm install gematria.tools

Usage:

import { Gematria } from "gematria.tools";

const hebrewWord = "אבג";
const englishWord = "GEMATRIA";

console.log(Gematria.calculate(hebrewWord, "hebrew"));
console.log(Gematria.calculate(englishWord, "english"));

You can also look at the tests for different usage and APIs

API

Gematria.calculate(word: string, language: 'hebrew' | 'english'): number Calculates the Gematria of a single word.

Gematria.calculateSentence(sentence: string, language: 'hebrew' | 'english'): number Calculates the Gematria of a sentence.

Dev

npm run build
npm run test
npm publish