Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodeSolidServer/node-solid-server
/ getHostName
Function
getHostName
lib/models/solid-host.mjs:58–61 ·
view source on GitHub ↗
(urlStr)
Source
from the content-addressed store, hash-verified
56
}
57
58
function
getHostName (urlStr) {
59
const
match = urlStr.match(/^\w+:\/*([^/]+)/)
60
return
match ? match[1] :
''
61
}
62
63
export
default SolidHost
Callers
1
allowsSessionFor
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected