npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hebrew-slugify

v1.0.1

Published

Slugify Hebrew text for URLs — transliteration + slug generation

Readme

hebrew-slugify — Hebrew Text to URL-Safe Slug Transliteration

npm version npm downloads CI TypeScript License: MIT Zero dependencies

Turn Hebrew text into clean, URL-safe slugs — with transliteration, niqqud stripping, and mixed Hebrew-English support. Zero dependencies, TypeScript.

hebrewSlugify("שלום עולם"); // → "shlvm-avlm"
hebrewSlugify("פוסט 42 בבלוג"); // → "pvst-42-bblvg"
hebrewSlugify("שלום Hello World"); // → "shlvm-hello-world"

הפיכת טקסט עברי ל-slug עבור כתובות URL — תעתיק + יצירת slug. ללא תלויות.

hebrew-slugify demo — transliterating Hebrew text to URL-safe slugs

Install

npm install hebrew-slugify

Usage

import { hebrewSlugify } from "hebrew-slugify";

hebrewSlugify("שלום עולם");
// → "shlvm-avlm"

hebrewSlugify("פוסט 42 בבלוג");
// → "pvst-42-bblvg"

hebrewSlugify("שלום Hello World");
// → "shlvm-hello-world"

// Handles niqqud (vowel marks)
hebrewSlugify("שָׁלוֹם");
// → "shlvm"

Options

hebrewSlugify("שלום עולם", { separator: "_" });
// → "shlvm_avlm"

hebrewSlugify("Hello World", { lowercase: false });
// → "Hello-World"

// Keep Hebrew characters (no transliteration)
hebrewSlugify("שלום עולם", { transliterate: false });
// → "שלום-עולם"

| Option | Type | Default | Description | | --------------- | --------- | ------- | ----------------------------- | | separator | string | "-" | Character between words | | lowercase | boolean | true | Convert to lowercase | | transliterate | boolean | true | Transliterate Hebrew to Latin |

Transliteration Table

| Letter | Transliteration | Letter | Transliteration | | ------ | --------------- | ------ | --------------- | | א | a | מ ם | m | | ב | b | נ ן | n | | ג | g | ס | s | | ד | d | ע | a | | ה | h | פ ף | p | | ו | v | צ ץ | ts | | ז | z | ק | k | | ח | ch | ר | r | | ט | t | ש | sh | | י | y | ת | t | | כ ך | k | ל | l |

Features

  • Transliterates Hebrew letters to Latin characters
  • Strips niqqud (vowel marks) automatically
  • Handles mixed Hebrew + English + numbers
  • Strips accented Latin characters (café → cafe)
  • Collapses consecutive separators
  • Zero dependencies
  • Full TypeScript support
  • ESM + CommonJS

API

hebrewSlugify(text: string, options?: SlugifyOptions): string

Converts a string (Hebrew, English, or mixed) into a URL-safe slug.

Looking for a WordPress plugin?

This library is also available as a WordPress plugin: hebrew-slugify-wp — same transliteration logic, auto-applied to post/page slugs. Works with Gutenberg, Elementor, WooCommerce.

Author

Ofer Shapira

LinkedIn GitHub

License

MIT © Ofer Shapira