Skip to content

Commit

Permalink
Clarified introduction (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbankhead committed Feb 4, 2017
1 parent 100de84 commit 590ead6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ const jetta = require('jetta')
jetta.request('altusaero.com', (error, results) => {
if (error !== null) {
// Results contains useful error details to help debug
console.dir(results.error)
console.dir(results.error, {colors: true})
throw error
} else {
// Results contain useful pieces of data - including response time, response headers, decompression info, and more
const responseTime = results.time.response
const html = results.data.toString()
// html = '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">...
// html === '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">...
}
})

Expand Down

0 comments on commit 590ead6

Please sign in to comment.