src/index.js
function(url, callback) {
    // Check if user input protocol
    if (url.indexOf('http://') < 0 && url.indexOf('https://') < 0) { // TODO: Turn this into its own function
      url = 'http://' + url;
    }

    // Make request and fire callback
    request.get(url.toLowerCase(), function(error, response, body) {
      if (!error && response.statusCode === 200) {
        return callback(body);
      }

      return callback(false);
    });
  }
function(url, callback) {
    // Check if user input protocol
    if (url.indexOf('http://') < 0 && url.indexOf('https://') < 0) { // TODO: Turn this into its own function
      url = 'http://' + url;
    }

    // Make request and fire callback
    request.get(url.toLowerCase(), function(error, response, body) {
      if (!error && response.statusCode === 200) {
        return callback(body);
      }

      return callback(false);
    });
  }
function ( url , callback ) { // Check if user input protocol if ( url . indexOf ( 'http://' ) < 0 && url . indexOf ( 'https://' ) < 0 ) { // TODO: Turn this into its own function url = 'http://' + url ; } // Make request and fire callback request . get ( url . toLowerCase ( ) , function ( error , response , body ) { if ( ! error && response . statusCode === 200 ) { return callback ( body ) ; } return callback ( false ) ; } ) ; }
Load HTML for a single URL

Use this to fetch the contents of a single URL then
pass the result to the `meta` function or any other
code that can parse or transform the response body of
an HTTP request.

`url` [String] - URL of page to read
`callback` [Function] - Function to call on completion

Returns the response body of an HTTP request as a string
Load HTML for a single URL