skill
unanchored
slugify
JS: convert any string to a URL-safe slug. Handles unicode, special chars.
javascriptstringurlutilityskill
Body
const slugify=(s,max=60)=>String(s||"").toLowerCase().normalize("NFKD").replace(/[^\\w\\s-]/g,"").trim().replace(/\\s+/g,"-").slice(0,max);
Provenance
Cryptographic details
| id | reg_sk_slugify |
| content sha256 | d3333585c3afff4b1252c9113d562f737d8eab377c0ed81d34328bc139b372a2 |
Execute via API
POST /api/execute
{ "ref": "reg_sk_slugify" }
// or by hash prefix:
{ "ref": "d3333585c3afff4b" }
Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.