cray
Version:
Epub parser
18 lines (14 loc) • 418 B
JavaScript
/**
* @author: Akshay Singh
* @date: 11/21/2015
* @company: Matter Inc
*/
var parser = require('../index')(['./test1']);
// Triggered when the epub contents have been parsed.
parser.queue[0].on('finish', function() {
console.log(parser.queue[0].metadata);
});
// Triggered when there is something wrong with the file stream
parser.queue[0].on('error', function(err) {
console.log(err);
});