From f6703254a2c877ccfa83fe6cd9f32449c9a943cd Mon Sep 17 00:00:00 2001 From: hicom150 Date: Fri, 6 Jun 2014 10:21:01 +0200 Subject: [PATCH] Fix small typos in the readme example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d45b81..86a93b3 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ To connect to a tracker, just do this: ```js var Client = require('bittorrent-tracker').Client var parseTorrent = require('parse-torrent') +var fs = require('fs') var torrent = fs.readFileSync(__dirname + '/torrents/bitlove-intro.torrent') var parsedTorrent = parseTorrent(torrent) // { infoHash: 'xxx', length: xx, announce: ['xx', 'xx'] } @@ -73,7 +74,7 @@ client.update() client.stop() // scrape -client.scape() +client.scrape() client.on('scrape', function (data) { console.log('got a scrape response from tracker: ' + data.announce)