diff --git a/README.md b/README.md index c28ae91b8e..620fecab5e 100755 --- a/README.md +++ b/README.md @@ -726,6 +726,14 @@ const querystring = require('querystring'); axios.post('http://something.com/', querystring.stringify({ foo: 'bar' })); ``` +or ['URLSearchParams'](https://nodejs.org/api/url.html#url_class_urlsearchparams) from ['url module'](https://nodejs.org/api/url.html) as follows: + +```js +const url = require('url'); +const params = new url.URLSearchParams({ foo: 'bar' }); +axios.post('http://something.com/', params.toString()); +``` + You can also use the [`qs`](https://github.com/ljharb/qs) library. ###### NOTE