Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

123 B
Raw Blame
export function getUrlHostname(url: string) {
  try {
    return new URL(url).hostname;
  } catch {
    return null;
  }
}