axios / axios-docs

Official documentation for the axios HTTP library
MIT License
150 stars 153 forks source link

Legacy node module in urlencoded #79

Open MatinSasan opened 2 years ago

MatinSasan commented 2 years ago

https://github.com/axios/axios-docs/blob/master/posts/en/urlencoded.md#query-string

the urlencoded page of the docs suggests using querystring module in node.js, however according to Node.js docs (https://nodejs.org/api/querystring.html), it's in legacy now, quoting:

The querystring API is considered Legacy. While it is still maintained, new code should use the URLSearchParams API instead.

In the urlencoded page, right after querystring example, an example of URLSearchParams is given.

I'd suggest that querystring example should be removed, according to Node.js docs. However please response as you see fit.

thevinitgupta commented 2 years ago

I would like to work on this