import { hyphenate } from "https://deno.land/x/ayonli_jsext@v0.9.72/string/index.ts";
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