Skip to content
JS
Package

url-slug

Tiny, zero-dependency slug generator (~700 bytes gzipped) with full TypeScript support — converts strings into clean, RFC 3986-compliant slugs and reverts them back to sentences

v5.2.0, 19 Sept 2026MITESM + CommonJSTypes: BundledStrings and textTypeScript tooling
$ npm install url-slug

Key numbers

As of 25 Sept 2026
Weekly downloads
175.5k
-17% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 days ago
v5.2.0
GitHub stars
92
8 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
21

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 286.7k (19 May 2026)Low 102.1k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

175,529 downloads last week, 855,341 in the last month. The 12-month change of -17% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.2.0, 19 Sept 20265 days ago
First published
-
Last push to GitHub
20 Sept 20265 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
21
Dependents on npm
79

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=14.0.0
Runtimes
-
Unpacked size (npm)
25 kB
Dependencies (0)
None
npm install url-slug
  • jsDelivrhttps://cdn.jsdelivr.net/npm/url-slug@5.2.0/
  • unpkghttps://unpkg.com/url-slug@5.2.0/
  • esm.shhttps://esm.sh/url-slug@5.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@hexagon/base643.3m-1 year agoESM + CommonJS-
string-similarity-js135.1k-5 years agoCommonJS-
@stacksjs/strings5.4k-todayESM only-
react-slugify5.2k-1 year agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.