Permalink
Browse files

typo

  • Loading branch information...
1 parent 7b1b625 commit a6bd30e1f9f3ae24276f1b89952d15f521109c77 @hdachev committed Jul 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit a6bd30e

Please sign in to comment.