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-plus

v1.0.0

Published

A customizable and scalable slug generator for Node.js with TypeScript support

Readme

🏆 Slugify-Plus - The Ultimate Slug Generator for Node.js 🚀

npm contributors

Slugify-Plus is an advanced, customizable, and developer-friendly slug generator for Node.js and JavaScript applications.
It helps create SEO-friendly URLs, unique identifiers, database keys, and human-readable slugs for various use cases.

🔥 Key Features

  • 🌍 Supports multiple languages (transliteration for non-Latin characters).
  • 🔠 Converts text into URL-safe slugs.
  • 🎨 Customizable separators (-, _, |, .).
  • 🚀 Removes common stop words for better readability.
  • 🔢 Supports max-length truncation to fit database constraints.
  • 🔄 Auto-appends unique IDs if a duplicate exists.
  • 🔑 CLI Support for command-line usage.

🎯 Why Use Slugify-Plus Over Other Slug Generators?

| Feature | Slugify-Plus ✅ | Other Libraries ❌ | |------------------------|----------------|--------------------| | Multi-language Support | ✅ Yes | ❌ Limited | | Custom Separators | ✅ Yes | ❌ No | | Stop Word Removal | ✅ Yes | ❌ No | | Database Friendly | ✅ Yes | ❌ No | | Unique ID Handling | ✅ Yes | ❌ No | | CLI Support | ✅ Yes | ❌ No | | TypeScript Support | ✅ Yes | ❌ No |


📦 Installation

Install the package via npm or yarn:

# Using npm
npm install slugify-plus

# Using yarn
yarn add slugify-plus

🚀 Usage Guide

1️⃣ Basic Slug Generation

const { slugify } = require("slugify-plus");

console.log(slugify("Hello World!")); 
// Output: hello-world

2️⃣ Custom Separator

console.log(slugify("Hello World!", { separator: "_" })); 
// Output: hello_world

3️⃣ Stop Word Removal

console.log(slugify("The Quick Brown Fox", { removeStopWords: true })); 
// Output: quick-brown-fox

4️⃣ Limit Slug Length

console.log(slugify("This is a very long title", { maxLength: 10 })); 
// Output: this-is-a

5️⃣ CLI Support

npx slugify-plus "Hello World!"
# Output: hello-world

🌍 Open Source Contribution

Slugify-Plus is open source and welcomes contributions from developers worldwide. 💜

🛠 How to Contribute?

  1. Fork the Repository on GitHub.
  2. Clone the Repository
    git clone https://github.com/imankii01/slugify-plus.git
    cd slugify-plus
  3. Install Dependencies
    npm install
  4. Create a New Branch
    git checkout -b feature-new-slug-format
  5. Make Your Changes & Commit
    git commit -m "Added new slug format feature"
  6. Push Changes & Create a Pull Request
    git push origin feature-new-slug-format
  7. Submit a PR on GitHub 🚀

💡 Use Cases

  • 📌 SEO Optimization - Generate SEO-friendly URLs automatically.
  • 🔑 Database & File Naming - Avoid spaces in filenames & database keys.
  • 🌐 CMS & Blogging Platforms - Convert titles into clean slugs.
  • 📂 Short URLs & Usernames - Generate readable & shareable links.

🎉 Support the Project

If you find this package useful, consider supporting me:

☕ Buy Me a Coffee
⭐ Star this project on GitHub


📄 License

This project is licensed under the MIT License.