Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo

  • Loading branch information...
commit a6bd30e1f9f3ae24276f1b89952d15f521109c77 1 parent 7b1b625
Hristo Dachev authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
4 README.md
View
@@ -14,7 +14,7 @@ and a `function(err, $, response, body)` callback,
where `$` is the jQuery object for the parsed page:
```javascript
-var jscrape = require ( './index' );
+var jscrape = require ( 'jscrape' );
jscrape ( 'http://www.google.com', function ( error, $, response, body ) {
if ( !error && $ ) {
// Print the innerHTML of the I'm Feeling Lucky button.
@@ -26,7 +26,7 @@ jscrape ( 'http://www.google.com', function ( error, $, response, body ) {
Or just use a `function(err, $)`-style callback:
```javascript
-var jscrape = require ( "./index" );
+var jscrape = require ( 'jscrape' );
function getNews ( callback ) {
jscrape ( 'http://news.ycombinator.com/', function ( err, $ ) {
// jquery to the rescue
Please sign in to comment.
Something went wrong with that request. Please try again.