9 lines
144 B
TypeScript
9 lines
144 B
TypeScript
|
import slug from 'slugify';
|
||
|
|
||
|
export function slugify(str: string): string {
|
||
|
return slug(str, {
|
||
|
replacement: '-',
|
||
|
lower: true,
|
||
|
});
|
||
|
}
|