node-slug is a small utility library for converting arbitrary strings into URL-friendly “slugs.” It replaces spaces and special characters with dashes, transliterates accented or non-ASCII characters into simpler equivalents, and ensures the output string is clean, lowercase, and suitable for use in URLs. The library is commonly used in content management systems, blogging engines, and SEO-sensitive applications where readable and consistent slugs are required. It supports many languages and character sets, allowing international text to be transformed into a safe format. The implementation is straightforward and can be embedded easily into Node.js applications with minimal configuration. It’s designed for reliability and predictability so that the same input always produces the same slug, ensuring stable URLs over time.

Features

  • Converts strings into URL-safe slugs while handling Unicode characters
  • Compliant with RFC 3986 for URL safety
  • Comprehensive test suite ensures reliability
  • No dependencies aside from a Unicode lookup table
  • Coerces foreign symbols into English equivalents when possible
  • Usable in both browser and CommonJS/AMD environments

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Node-Slug

Node-Slug Web Site

Other Useful Business Software
Unrivaled Embedded Payments Solutions | NMI Icon
Unrivaled Embedded Payments Solutions | NMI

For SaaS builders, software companies, ISVs and ISOs who want to embed payments into their tech stack

NMI Payments is an embedded payments solution that lets SaaS platforms, Software companies and ISVs integrate, brand, and manage payment acceptance directly within their software—without becoming a PayFac or building complex infrastructure. As a full-stack processor, acquirer, and technology partner, NMI handles onboarding, compliance, and risk so you can stay focused on growth. The modular, white-label platform supports omnichannel payments, from online, mobile and in-app to in-store and unattended. Choose from full-code, low-code, or no-code integration paths and launch in weeks, not months. Built-in risk tools, flexible monetization, and customizable branding help you scale faster while keeping full control of your experience. With NMI’s developer-first tools, sandbox testing, and modern APIs, you can embed payments quickly and confidently.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Node-Slug!

Additional Project Details

Programming Language

CoffeeScript

Related Categories

CoffeeScript Website Monitoring Tool

Registered

2025-08-22