Skip to main content
Module

x/slugify/mod.ts>slugify

A string slugifier
Latest
namespace slugify
import { slugify } from "https://deno.land/x/slugify@0.3.0/mod.ts";
function slugify
import { slugify } from "https://deno.land/x/slugify@0.3.0/mod.ts";

Replace the string with its slug counterpart

Parameters

string: string

String to slugify

optional
options: { replacement?: string; remove?: string | RegExp; lower?: boolean; } | string = [UNSUPPORTED]

Additional options like replacement, remove or lower

Returns

string