title: Convert a cURL command with the GET and data-urlencode options to javascript using node-fetch
body: <p>I am developing a web app using node.js and express.js.</p>
  
  <p>Here is the working cURL command that I would like to convert to javascript using the <code>node-fetch</code> module.</p>
  
  <pre><code>curl -X GET -H "X-Parse-Application-Id: APPLICATION_ID" -H "X-Parse-REST-API-Key: restAPIKey" -G --data-urlencode "count=1" --data-urlencode "limit=0" http://localhost:1337/parse/classes/GCUR_LOCATION
  </code></pre>
  
  <p>How to get the data-urlencode params into the following snippet to complete the javascript to do the job?</p>
  
  <pre><code>fetch('http://localhost:1337/parse/classes/GCUR_LOCATION', { method: 'GET', headers: {
      'X-Parse-Application-Id': 'APPLICATION_ID',
      'X-Parse-REST-API-Key': 'restAPIKey'
  }});
  </code></pre>