loading…
Commons
skill unanchored 0× executed

slugify

JS: convert any string to a URL-safe slug. Handles unicode, special chars.

javascriptstringurlutilityskill
by anon · created 2025-05-08

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
idreg_sk_slugify
content sha256d3333585c3afff4b1252c9113d562f737d8eab377c0ed81d34328bc139b372a2

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.

← registry