Function toKebabCase

  • Converts a string into kebab-case.

    Parameters

    • input: string

      The string that is going to be converted into kebab-case

    Returns string

    The string as kebab-case

    import { toKebabCase } from "@std/text/to-kebab-case";
    import { assertEquals } from "@std/assert";

    assertEquals(toKebabCase("deno is awesome"), "deno-is-awesome");