UNPKG

url-assist

Version:
15 lines (14 loc) 380 B
/** * To normalize the format of the URL * * @since 1.2.6 * @category string * @param {string} pattern Passing the completet domain url * @param {any=} ext Passing the completet domain url * @returns {string} Return the string. * @example * * formatUrlInit('helloworld') *=> helloworld */ export function formatUrlInit(pattern: string, ext?: any | undefined): string;