Getting Started
Syllabify Hebrew text
Installation
npm i havarotjs
import { Text } from "npm:havarotjs";
import { Text } from "https://esm.sh/havarotjs";
Usage
import { Text } from "havarotjs";const text = new Text("הֲבָרֹות");console.log(text.words);// [ Word { original: "הֲבָרֹות" } ]
const Text = require("havarotjs").Text;const text = new Text("הֲבָרֹות");console.log(text.words);// [ Word { original: "הֲבָרֹות" } ]
import { transliterate } from "npm:havarotjs";const text = new Text("הֲבָרֹות");console.log(text.words);// [ Word { original: "הֲבָרֹות" } ]
import { transliterate } from "https://esm.sh/havarotjs";const text = new Text("הֲבָרֹות");console.log(text.words);// [ Word { original: "הֲבָרֹות" } ]
Learn more
Text To learn more see the
Text
class