sayde-slug
v1.0.0
Published
Tiny slugify with optional Arabic support
Readme
sayde-slug
A tiny utility to convert text into clean URL slugs.
Installation
npm install sayde-slug
## Usage
```js
import { slugify } from "sayde-slug";
console.log(slugify("Hello World!"));
// → "hello-world"
console.log(slugify("Sayde's Slug Function 1.0"));
// → "saydes-slug-function-10"
## API
slugify(input: string): string
Converts any text into a lowercase, dash-separated slug.
Removes special characters
Replaces spaces with -
Keeps letters, digits, and hyphens
Examples
Input Output
"Hello World!" "hello-world"
"Clean Code 101" "clean-code-101"
"This is AMAZING!!!" "this-is-amazing"
License
MIT © 2025 Sayde Jabbour
---
