Unified URL parsing API in the browser and node