@wordpress/url
Version:
WordPress URL utilities.
61 lines (60 loc) • 2.09 kB
JavaScript
// packages/url/src/index.ts
import { isURL } from "./is-url.mjs";
import { isEmail } from "./is-email.mjs";
import { isPhoneNumber } from "./is-phone-number.mjs";
import { getProtocol } from "./get-protocol.mjs";
import { isValidProtocol } from "./is-valid-protocol.mjs";
import { getAuthority } from "./get-authority.mjs";
import { isValidAuthority } from "./is-valid-authority.mjs";
import { getPath } from "./get-path.mjs";
import { isValidPath } from "./is-valid-path.mjs";
import { getQueryString } from "./get-query-string.mjs";
import { buildQueryString } from "./build-query-string.mjs";
import { isValidQueryString } from "./is-valid-query-string.mjs";
import { getPathAndQueryString } from "./get-path-and-query-string.mjs";
import { getFragment } from "./get-fragment.mjs";
import { isValidFragment } from "./is-valid-fragment.mjs";
import { addQueryArgs } from "./add-query-args.mjs";
import { getQueryArg } from "./get-query-arg.mjs";
import { getQueryArgs } from "./get-query-args.mjs";
import { hasQueryArg } from "./has-query-arg.mjs";
import { removeQueryArgs } from "./remove-query-args.mjs";
import { prependHTTP } from "./prepend-http.mjs";
import { safeDecodeURI } from "./safe-decode-uri.mjs";
import { safeDecodeURIComponent } from "./safe-decode-uri-component.mjs";
import { filterURLForDisplay } from "./filter-url-for-display.mjs";
import { cleanForSlug } from "./clean-for-slug.mjs";
import { getFilename } from "./get-filename.mjs";
import { normalizePath } from "./normalize-path.mjs";
import { prependHTTPS } from "./prepend-https.mjs";
export {
addQueryArgs,
buildQueryString,
cleanForSlug,
filterURLForDisplay,
getAuthority,
getFilename,
getFragment,
getPath,
getPathAndQueryString,
getProtocol,
getQueryArg,
getQueryArgs,
getQueryString,
hasQueryArg,
isEmail,
isPhoneNumber,
isURL,
isValidAuthority,
isValidFragment,
isValidPath,
isValidProtocol,
isValidQueryString,
normalizePath,
prependHTTP,
prependHTTPS,
removeQueryArgs,
safeDecodeURI,
safeDecodeURIComponent
};
//# sourceMappingURL=index.mjs.map