Getting started

Inspect the bundled documentation before running the utility in a local test project.

Compatibility and review

Use the demo with synthetic inputs and review its behavior in your own tools before adapting it.

Resource files

Inspect the original contents and download individual files.

Download file

export function toSlug(input) {
  return String(input).normalize("NFKC").trim().toLowerCase()
    .replace(/[^\p{Letter}\p{Number}\p{Mark}]+/gu, "-")
    .replace(/^-+|-+$/g, "");
}