title: NodeJS url.parse( url ).query
body: <p>In the nodejs documentation: </p>
  
  <blockquote>
    <p>query: Either the 'params' portion of the query string, or a querystring-parsed object.
    Example: <strong><code>'query=string'</code></strong> or <strong><code>{'query':'string'}</code></strong></p>
  </blockquote>
  
  <p>Link: <a href="http://nodejs.org/api/url.html#url_url" rel="noreferrer">NodeJS URL</a></p>
  
  <p>This part is confusing. </p>
  
  <ol>
  <li>When will <strong><code>'query=string'</code></strong> happens?  </li>
  <li>When will this
  <strong><code>{'query':'string'}</code></strong> also happens?</li>
  </ol>
  
  <p>I have seen that when I do <code>url.parse()</code> it automatically converts the parameters into an object. My code will be buggy if I only support one format. </p>
  
  <p>How will I know if <code>url.parse()</code> converts the parameters in this format: <strong><code>'query=string'</code></strong>?</p>