JavaScript URL Parser will break URL addresses apart and extract various component parts.
These details are then stored inside a JS object and made available to other libraries or plugins.
The library works with client-side (browsers) and server-side (Node.js) environments alike.
Along with the vanilla JS library, a jQuery version is also included with the download package.
Can extract:
Hostname
Domain
Sub-domain
TLD
Parameters
Protocol
Port
Username
Password
File
File extension
Path
Hash
What is new in this release:
- Renamed js-url.js to just url.js.
What is new in version 2.0.2:
- Renamed js-url.js to just url.js.
What is new in version 1.8.6:
- Renamed js-url.js to just url.js.
What is new in version 1.8.0:
- Made some fixes for failed test cases
- Updated arg[] to .chartAt()
- Updated/Added some test cases
- Removed tld (since it's not working correctly)
What is new in version 1.7.3:
- Added jQuery manifest file.
Requirements:
- JavaScript enabled on client side
- jQuery 1.5 or higher (for the jQuery version)
- Node.js for server-side environments
Comments not found