# sindresorhus/slugify

Slugify a string

Repository: https://github.com/sindresorhus/slugify
Canonical: https://ross.abutalabs.com/products/sindresorhus-slugify
Language: JavaScript
License: MIT
License Family: permissive
Topics: slugify, slug, url-safe, transliteration, nodejs, browser, npm-package
Last push: 2025-09-11T12:11:51+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 41, release rhythm 15, longevity 100
- inputs: {"age_days": 3059, "days_push": 356, "days_rel": 356, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2702, forks 90 (observed 2026-08-28T04:07:11.475018+00:00)

## What it is
A JavaScript library that converts strings into URL-safe slugs, handling transliteration for many languages including German, Vietnamese, Arabic, and Russian. It offers configurable options like custom separators, lowercase conversion, and custom replacements.

## Use cases
- generate url-safe slugs from titles
- create seo-friendly urls from strings
- slugify filenames for uploads
- transliterate cyrillic or arabic text to ascii slugs
- convert article titles to url ids
- sanitize strings for use as identifiers

## When to choose
- you need reliable slug generation in Node.js or the browser
- you need multilingual transliteration support
- you want a small, well-maintained, zero-dependency utility

## When to avoid
- you need slugging in a non-JavaScript language
- you need complex SEO or unicode normalization beyond slugging

## Facets
- artifact type: library
- maturity: stable
- function: serialization, parser, internationalization
- domain: web-development, developer-tools
- platform: browser
- tags: slugify, url-safe, transliteration, npm-package, string-utils, localization, nodejs, javascript

## Member repositories
- sindresorhus/slugify (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:11.475018+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:15:57.807653+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/slugify (fetched 2026-08-28T04:07:11.475018+00:00, sha 35f8b003dd5e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
