slugify
Version:
Slugifies a String
28 lines (23 loc) • 502 B
TypeScript
declare namespace slugify {
type ExtendArgs = {
[key: string]: any;
}
export function extend (args: ExtendArgs): void;
const _default: typeof slugify;
export { _default as default };
}
declare function slugify(
string: string,
options?:
| {
replacement?: string;
remove?: RegExp;
lower?: boolean;
strict?: boolean;
locale?: string;
trim?: boolean;
}
| string,
): string;
export = slugify;
export as namespace slugify;