Read a URL's parameters as JSON, or build a query string from an object, with repeated keys handled as the arrays they are.
The result appears hereIt becomes an array. tag=jazz&tag=harp is two values for one key, and an object with one of them silently dropped is how half the pagination bugs on the web start.
Yes. Everything before the ? is ignored, so you can paste the address straight out of the bar.
Yes, by URLSearchParams itself, which is the browser's own implementation: %20 and + both come back as spaces, and going the other way the values are escaped properly.
2189 blocks and 1325 pieces for shadcn/ui and Tailwind, built on the same tokens these tools write. Install one with a command and the code is yours.
Browse the blocksNo signup for the tools. MIT for free blocks, commercial licence for Pro.