GitShow/sindresorhus/slugify
sindresorhus

slugify

Slugify a string

by sindresorhus
browsernodejsnpm-packageslugslugifytransliterationurl-safe
Star on GitHubForknpm

JavaScript

2.7k stars88 forks19 contributorsQuiet · 9mo agoSince 2018v3.0.0MIT

Meet the team

See all 19 on GitHub →
sindresorhus
sindresorhus49 contributions
aegatlin
aegatlin3 contributions
BendingBender
BendingBender2 contributions
TiagoDanin
TiagoDanin2 contributions
alisonmonteiro
alisonmonteiro1 contribution
ArfatSalman
ArfatSalman1 contribution
CanRau
CanRau1 contribution
duruld
duruld1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
Catsvilles
Truncate string input?ClosedIssue

Is it possible to truncate the output of the "slugified" string if it's way too long? Thanks!

Catsvilles · 5mo ago
dlamb3241-create
Normalize duplicate separators in slug outputMergedPR
dlamb3241-create · 6mo ago
petersg83
Cannot use Slugify inside Jest testsClosedIssue

Slugify seems natively incompatible with jest. I get the following error when I run jest test where slugify is used in one of the test: My files: Here is a repo that reproduces the error when you run or : https://replit.com/@PierreNoel/slug#slug.test.js

petersg83 · 6mo ago
Structured data for AI agents

Repository: sindresorhus/slugify. Description: Slugify a string Stars: 2699, Forks: 88. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: browser, nodejs, npm-package, slug, slugify, transliteration, url-safe. Latest release: v3.0.0 (9mo ago). Open PRs: 0, open issues: 1. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, aegatlin, BendingBender, TiagoDanin, alisonmonteiro, ArfatSalman, CanRau, duruld, hanneskuettner, jfexyz and others.

·@ofershap

Replace github.com with gitshow.dev