I want to use the JS library url-parse in Chrome devtools console. It should work as it has this in its introduction.
Small footprint URL parser that works seamlessly across Node.js and browser environments.
This is what I did.
var url = new Url('https://github.com/foo/bar'); and I got the error Uncaught ReferenceError: Url is not defined