fast-querystring icon indicating copy to clipboard operation
fast-querystring copied to clipboard

boolean support ?

Open Mupli opened this issue 8 months ago • 4 comments

as in title. swap "false" and "true" for boolean. same with numbers.

Mupli avatar Jun 10 '25 22:06 Mupli

Are you ok with having a normalize() function? Like: normalize(parse(input))?

anonrig avatar Jun 10 '25 22:06 anonrig

well shouldn't that be out of box ?

parse("a=3") => {a:3}

Mupli avatar Jun 11 '25 13:06 Mupli

well shouldn't that be out of box ?

parse("a=3") => {a:3}

This will have a significant performance impact. Checking if a string is a number has a significant performance toll.

anonrig avatar Jun 20 '25 01:06 anonrig

hm... though it won't help my case. You could have some compiler to declare .. for example :

const parser = qs.compile({age:"number"}) paser.parse("age=3&a=3") => {age:3, a:"3"}

Mupli avatar Jun 20 '25 05:06 Mupli