UNPKG

@xapp/arachne-utils

Version:

14 lines (13 loc) 482 B
/*! Copyright (c) 2020, XAPP AI */ import { Options } from "normalize-url"; /** * Normalize the URL to make it easier to dedupe or compare URLs. * * It is a wrapper around the package {@link https://github.com/sindresorhus/normalize-url} but * with setting a default option of stripHash to true, which can be overridden if you provide * your own options. * * @param url * @param removeAnchor */ export declare function normalizeURL(url: string, options?: Options): string;