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

slugify-url-smart

v1.0.2

Published

A zero-dependency, smart URL slug generator with transliteration and emoji support.

Readme

🔗 slugify-url-smart

npm version License: MIT Bundle Size CI Status

A zero-dependency, smart URL slug generator with emoji support (🔥 → fire), transliteration (café → cafe), and SEO-friendly output. Perfect for blogs, e-commerce, and CMS platforms.


✨ Features

  • 🎯 Emoji to Text: Converts 🚀rocket, ❤️heart, etc.
  • 🌍 Unicode Aware: Handles accents (e.g., Münchenmuenchen).
  • 🔧 Flexible Formats: Choose kebab-case, snake_case, or camelCase.
  • 🧹 Clean Output: Strips special chars, spaces, and duplicates.
  • 📦 Zero Dependencies – Lightweight (≈2KB) and fast.

🚀 Install

npm install slugify-url-smart
# or
yarn add slugify-url-smart
# or
pnpm add slugify-url-smart

📖 Usage

Basic (kebab-case)

import { slugify } from 'slugify-url-smart';

slugify('🔥 Hot Deals! Café 50% OFF → 2024');
// Output: 'fire-hot-deals-cafe-50-percent-off-2024'

Custom Format (snake_case/camelCase)

slugify('Hello World 🌎', { case: 'snake' });
// Output: 'hello_world_earth'

slugify('Hello World 🌎', { case: 'camel' });
// Output: 'helloWorldEarth'

⚙️ API

slugify(input: string, options?)

  • input: String to convert (e.g., "Hello @World!").
  • options.case: 'kebab' (default), 'snake', or 'camel'.

🛠 Use Cases

  • Blogs: Clean post URLs (/fire-hot-deals-2024).
  • E-commerce: Product slugs (/organic-cafe-latte).
  • CMS: Safe paths for user-generated content.
  • SEO: Readable URLs for better rankings.

❓ FAQ

Q: Does it handle non-Latin scripts?
A: Yes! Transliterates Cyrillic, Chinese, etc. (e.g., 北京bei-jing).

Q: Can I contribute?
A: Absolutely! Open an issue or PR on GitHub.


📜 License

MIT © Ronak Munjapara
Like this? ⭐️ Star the repo!


Key Improvements:

  1. Visual Hierarchy: Clear sections with emojis and dividers.
  2. Badges: Added npm version, license, size, and CI status for credibility.
  3. FAQ: Anticipates common questions.
  4. Install Options: Shows npm/yarn/pnpm commands.
  5. Call-to-Action: Encourages GitHub stars.