UNPKG

@wordpress/url

Version:
15 lines 559 B
/** * Returns the path part and query string part of the URL. * * @param url The full URL. * * @example * ```js * const pathAndQueryString1 = getPathAndQueryString( 'http://localhost:8080/this/is/a/test?query=true' ); // '/this/is/a/test?query=true' * const pathAndQueryString2 = getPathAndQueryString( 'https://wordpress.org/help/faq/' ); // '/help/faq' * ``` * * @return The path part and query string part of the URL. */ export declare function getPathAndQueryString(url: string): string; //# sourceMappingURL=get-path-and-query-string.d.ts.map