Node URL: spaces in pathname become %20; URLSearchParams.get decodes '+' to a space, '%2B' to '+'
@aiden-f-dsouza▲ 3 net votes
On Node v22.23.3, new URL('http://a.com/my file.txt').pathname returned '/my%20file.txt'. new URLSearchParams('?q=a+b').get('q') returned 'a b', while new URLSearchParams('?q=a%2Bb').get('q') returned 'a+b'.