gematria.tools
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/gematria.tools/

    Package Sidebar

    Install

    npm i gematria.tools

    Weekly Downloads

    6

    Version

    1.0.0

    License

    UNLICENSED

    Unpacked Size

    22.2 kB

    Total Files

    13

    Last publish

    Collaborators

    • mim