Minimalist URL Parser
JSON →url-parser-lite is a minimal URL parsing utility designed for all JavaScript environments, including browsers and Node.js. Currently at version 0.1.0, its primary differentiator is its extremely small footprint, weighing in at less than 1 kilobyte (specifically, 360 bytes). It provides basic parsing capabilities for common URL components like protocol, authentication, host, path, hash, and query parameters. The library prioritizes size and simplicity over comprehensive RFC compliance or advanced features found in native `URL` objects or larger parsing libraries. Given its early version, the release cadence is not yet established, but it serves as a straightforward alternative for environments where bundle size is critical and full URL specification adherence is not required. Its implementation is based on a well-regarded Stack Overflow answer, aiming for robust parsing of common URL patterns without external dependencies.
Traffic · last 30 days ↓71% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France