* 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)
| 1703 | * @returns {URL['origin']} |
| 1704 | */ |
| 1705 | function getURLOrigin(url) { |
| 1706 | return bindingUrl.getOrigin(url); |
| 1707 | } |
| 1708 | |
| 1709 | module.exports = { |
| 1710 | fileURLToPath, |
no test coverage detected
searching dependent graphs…