sindresorhus/query-string

Lack of symmetry between parse and stringify

Open

#295 opened on Nov 10, 2020

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (459 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (6,538 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

stringify(parse('?%20&')) yields only &.

Bit of an edge-case I admit, but do we want to be losing this information?

parse('?%20&') yields {"":null," ":null}.

Contributor guide