{"size": 316, "ext": "js", "max_stars_repo_path": "06-node/APIs/first_request.js", "max_stars_repo_name": "fabriciofmsilva/the-web-developer-bootcamp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "06-node/APIs/first_request.js", "max_issues_repo_name": "fabriciofmsilva/the-web-developer-bootcamp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "06-node/APIs/first_request.js", "max_forks_repo_name": "fabriciofmsilva/the-web-developer-bootcamp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.7272727273, "max_line_length": 74, "alphanum_fraction": 0.6550632911}
const request = require('request-promise');

request('https://jsonplaceholder.typicode.com/users/1')
  .then((htmlstring) => {
    const parsedData = JSON.parse(htmlstring);
    console.log(`${parsedData.name} lives in ${parsedData.address.city}`);
  })
  .catch((error) => {
    console.log('Error!', error);
  });
