Skip to content

Instantly share code, notes, and snippets.

@ryanhugh
Created October 12, 2018 01:59
Show Gist options
  • Save ryanhugh/f344fe40f036ef70b57f5c0611bfd533 to your computer and use it in GitHub Desktop.
Save ryanhugh/f344fe40f036ef70b57f5c0611bfd533 to your computer and use it in GitHub Desktop.
var request = require('request')
var beautify = require('js-beautify').html;
request('https://google.com', (error, response) => {
let data = beautify(response.body, { indent_size: 2, space_in_empty_paren: true })
console.log(data)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment