12 lines
269 B
TypeScript
12 lines
269 B
TypeScript
import slug from 'slug';
|
|
|
|
export function fpSlugify(str: string): string {
|
|
return slug(str, {
|
|
replacement: '-',
|
|
lower: true,
|
|
locale: 'en',
|
|
trim: true,
|
|
});
|
|
}
|
|
|
|
export const ua0 = 'Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0' |