everyutil
Version:
A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.
11 lines (10 loc) • 346 B
TypeScript
/**
* Finds all URLs in a string.
*
* Example: extractURLs("Visit https://github.com and http://example.com") → ["https://github.com", "http://example.com"]
*
* @author @dailker
* @param {string} str - The input string.
* @returns {string[]} Array of URLs found.
*/
export declare function extractURLs(str: string): string[];