desislug
v1.0.0
Published
Universal multilingual slug generator supporting Bangla, Hindi and more.
Maintainers
Readme
desislug
🌍 Universal multilingual slug generator for Node.js.
desislug converts text from multiple languages into clean, SEO-friendly URL slugs.
Supports Bangla, Hindi, English and other Unicode text.
Lightweight • Fast • Zero Dependencies
✨ Features
- 🌐 Multilingual transliteration (Bangla, Hindi & more)
- 🔎 SEO friendly URL slugs
- ⚡ Lightweight & fast
- 📦 Zero dependencies
- 🧠 Simple API
- 🟦 TypeScript support included
📦 Installation
npm install desislug🚀 Usage
Basic Example
const desislug = require("desislug");
desislug("Hello World");
// hello-worldBangla Example
desislug("আমার Blog Post");
// amar-blog-postHindi Example
desislug("नमस्ते दुनिया");
// namaste-duniya⚙️ Options
desislug(text, options);| Option | Type | Default | Description | |------|------|------|-------------| | lower | boolean | true | Convert output to lowercase | | strict | boolean | true | Remove special characters |
Example:
desislug("Hello World!", {
lower: true,
strict: true
});📌 Output Rules
- Spaces →
- - Special characters removed
- Multiple dashes cleaned
- Unicode text transliterated
🧩 Example Outputs
| Input | Output | |------|-------| | Hello World | hello-world | | আমার বাংলা লেখা | amar-bangla-lekha | | नमस्ते दुनिया | namaste-duniya |
🛠️ Requirements
- Node.js 14+
🤝 Contributing
Contributions are welcome!
- Fork the repository
- Create your feature branch
- Commit changes
- Open a Pull Request
📄 License
MIT © 2026
⭐ Support
If you find this package useful, consider giving it a ⭐ on GitHub.
Made with ❤️ for developers worldwide.
