import { hyphenate } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/string/index.js";
Replaces the spaces between non-empty characters of the string with hyphens (-
).
Examples
Example 1
Example 1
import { hyphenate } from "@ayonli/jsext/string";
console.log(hyphenate("hello world")); // hello-world
console.log(hyphenate("hello world")); // hello-world