diff --git a/example.js b/example.js deleted file mode 100644 index a22ff0a..0000000 --- a/example.js +++ /dev/null @@ -1,27 +0,0 @@ -var EPub = require("./epub"); - -var epub = new EPub("tasuja.epub", "tere", "vana"); -epub.on("error", function(err){ - console.log("ERROR\n-----"); - throw err; -}); - -epub.on("end", function(err){ - console.log("PARSED\n-----"); - console.log(epub.metadata); - console.log(epub.manifest); - console.log(epub.spine); - console.log(epub.toc); - - epub.getChapter("item259", function(err, data){ - console.log(err || data); - }); - - epub.getImage("item262", function(err, data, mimeType){ - console.log(err || data); - console.log(mimeType) - }); - -}); - -epub.parse(); \ No newline at end of file