Closed charbugs closed 3 years ago
It depends on which browsers you need to support. See: https://github.com/sindresorhus/normalize-url/issues/105
Thanks for the pointer!
Hi, @sindresorhus Is js-regexp-lookbehind the only limitation prevent using v7 in browser? Might be better to document the reason behind
If you need to use this in the browser, use version 4: npm i normalize-url@4
For any seeing this, after I migrate test.js
from ava
to mocha+chai
, I would say
Q: Can I use sindresorhus/normalize-url@7.0.0 in the browser? A:
The readme says:
I scanned the index.js of version 7 and it seems to me that there are no Node-specific APIs involved. I also did a quick check which seems to work at first glance:
So is it save to use version 7 in the browser?