Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8385061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:34:22+00:00 2026-06-09T17:34:22+00:00

In the nodejs documentation: query: Either the ‘params’ portion of the query string, or

  • 0

In the nodejs documentation:

query: Either the ‘params’ portion of the query string, or a querystring-parsed object.
Example: 'query=string' or {'query':'string'}

Link: NodeJS URL

This part is confusing.

  1. When will 'query=string' happens?
  2. When will this
    {'query':'string'} also happens?

I have seen that when I do url.parse() it automatically converts the parameters into an object. My code will be buggy if I only support one format.

How will I know if url.parse() converts the parameters in this format: 'query=string'?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:34:24+00:00Added an answer on June 9, 2026 at 5:34 pm
    url.parse(urlStr, [parseQueryString], [slashesDenoteHost])
    

    If you pass true as the second argument it will also parse the query string using the querystring module and you will get an object {'query':'string'}, otherwise the query string will not be parsed (default behavior) and you will get query=string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to perform AES CBC encryption with zero padding of a url query
Here are three pieces of terminology used in documentation relating to ConnectJS for NodeJS
I have just started studying node.js and express, the documentation of express on the
I want to load child nodes on expansion. In the documentation, they mentioned that
NodeJS is a fantastic tool and blazing fast. I'm wondering if HTTPClient supports cookies
I'm new to nodejs and maybe don't got an event system how it should
From http://nodejs.org/api/vm.html : JavaScript code can be compiled and run immediately or compiled, saved,
I am deploying a NodeJS application on CloudFoundry http://docs.cloudfoundry.com/frameworks/nodejs/nodejs.html . My application is based
I have been learning NodeJS recently. It seems to be standard in the Node
I have a nodejs script that uses phantomjs-node to scrape a webpage. It works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.