UNPKG

@wordpress/url

Version:
14 lines 377 B
/** * Prepends "http://" to a url, if it looks like something that is meant to be a TLD. * * @param {string} url The URL to test. * * @example * ```js * const actualURL = prependHTTP( 'wordpress.org' ); // http://wordpress.org * ``` * * @return {string} The updated URL. */ export function prependHTTP(url: string): string; //# sourceMappingURL=prepend-http.d.ts.map