UNPKG

@wordpress/url

Version:
16 lines 433 B
/** * Prepends "https://" to a url, if it looks like something that is meant to be a TLD. * * Note: this will not replace "http://" with "https://". * * @param url The URL to test. * * @example * ```js * const actualURL = prependHTTPS( 'wordpress.org' ); // https://wordpress.org * ``` * * @return The updated URL. */ export declare function prependHTTPS(url: string): string; //# sourceMappingURL=prepend-https.d.ts.map