node package manager

url-util

url-js

JavaScript CommonJS module for working with URLs for use on client-side (browser) or server-side (NodeJS)