43081j / picoquery

A small library for parsing and serializing query strings
MIT License
70 stars 2 forks source link

Implement `encodeValuesOnly` from qs #47

Open minht11 opened 4 months ago

minht11 commented 4 months ago

It makes urls easier to debug: https://github.com/ljharb/qs?tab=readme-ov-file#stringifying

43081j commented 4 months ago

This is a difficult one. qs is wrong, as all those symbols should be encoded as per the spec (e.g. see how URLSearchParams works)

It's pretty much an option because people want nice looking URLs, against the standard

If there's enough demand for it, we might have no option. But it seems a shame to veer away from the standard like qs did