(url: string)
| 148 | .replace(/^_+|_+$/g, ""); |
| 149 | |
| 150 | const hostnameOf = (url: string): string | null => { |
| 151 | if (!URL.canParse(url)) return null; |
| 152 | return new URL(url).hostname; |
| 153 | }; |
| 154 | |
| 155 | const basenameOf = (path: string): string => path.trim().split(/[\\/]/).pop() ?? path.trim(); |
| 156 |
no outgoing calls
no test coverage detected