npm-url-utils
Node.js - An implementation of URLUtils as described by MDN. Useful for emulating window.location on the server side.
See MDN documentation: https://developer.mozilla.org/en-US/docs/Web/API/URLUtils
Example (using express.js)
npm install url-utils
app;