Buckets:
| import { isIPv6 } from './is-ipv6' | |
| /** | |
| * Formats a hostname so that it is a valid host that can be fetched by wrapping | |
| * IPv6 hosts with brackets. | |
| * @param hostname | |
| * @returns | |
| */ | |
| export function formatHostname(hostname: string): string { | |
| return isIPv6(hostname) ? `[${hostname}]` : hostname | |
| } | |
Xet Storage Details
- Size:
- 301 Bytes
- Xet hash:
- cdd382084c23239ead41c5c3dbace59d0e3e2185226b7982f3c832a76877e823
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.