Task: Implement a Title-to-URL-Slug Converter in JavaScript
Task: Implement a Title-to-URL-Slug Converter in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript (Node.js) module that converts a human-readable title string into a clean URL slug. The conversion should follow these rules:
Part of PrimeIntellect/Terminal-Lego-15k.