MCPcopy Index your code
hub / github.com/chavyleung/scripts / getHost

Function getHost

chavy.box.js:119–121  ·  view source on GitHub ↗

* http://boxjs.com/ => `http://boxjs.com` * http://boxjs.com/app/jd => `http://boxjs.com`

(url)

Source from the content-addressed store, hash-verified

117 * http://boxjs.com/app/jd => `http://boxjs.com`
118 */
119function getHost(url) {
120 return url.slice(0, url.indexOf('/', 8))
121}
122
123/**
124 * http://boxjs.com/ => ``

Callers 1

doneBoxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…