@xapp/arachne-utils
Version:
19 lines (18 loc) • 434 B
TypeScript
/*! Copyright (c) 2024, XAPP AI */
/**
* Generates a URL pattern that will enable the crawler to
* follow through sub paths for the provided URL.
*
* For example:
*
* www.example.com/faqs
*
* will become
*
* https://[(www.)?]example.com/faqs[.+]
*
* NOTE: This will throw an error if the URL was not a proper URL.
*
* @param urlString
*/
export declare function generateFollowThroughPattern(urlString: string): string;