MCPcopy Index your code
hub / github.com/nodejs/node / getURLOrigin

Function getURLOrigin

lib/internal/url.js:1705–1707  ·  view source on GitHub ↗

* This util takes a string containing a URL and return the URL origin, * its meant to avoid calls to `new URL` constructor. * @param {string} url * @returns {URL['origin']}

(url)

Source from the content-addressed store, hash-verified

1703 * @returns {URL['origin']}
1704 */
1705function getURLOrigin(url) {
1706 return bindingUrl.getOrigin(url);
1707}
1708
1709module.exports = {
1710 fileURLToPath,

Callers 3

initOriginSetFunction · 0.85
altsvcMethod · 0.85
originMethod · 0.85

Calls 1

getOriginMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…