feross / simple-get

Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines
MIT License
401 stars 50 forks source link

Switch from querystring to URLSearchParams #67

Open jimmywarting opened 3 years ago

jimmywarting commented 3 years ago

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

https://github.com/feross/simple-get/blob/81eaf56c012dec4f64f223f4c41811e32ea2ce53/index.js#L9

The npm package is deprecated also: https://www.npmjs.com/package/querystring