From 424ec4fd9bf65275b6c990b8cf755c144e433357 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Tue, 14 Feb 2017 16:25:41 -0800 Subject: [PATCH] Add reference to querystring --- doc/api/url.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/api/url.md b/doc/api/url.md index 88b9493dd71142..dc4122760b278d 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -660,10 +660,15 @@ to customize the serialization process of the URL. For more flexibility, ### Class: URLSearchParams -The `URLSearchParams` object provides read and write access to the query of a +The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the four following constructors. +The WHATWG `URLSearchParams` interface and the [`querystring`][] module have +similar purpose, but the purpose of the [`querystring`][] module is more +general, as it allows the customization of delimiter characters (`&` and `=`). +On the other hand, this API is designed purely for URL query strings. + ```js const { URL, URLSearchParams } = require('url');