bookParser/JointPublishing.js
Function getByISBN
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getByISBN = function(pISBN) {
var domain = 'http://www.jointpublishing.com';
var searchUrl =
'/Special-Page/search-result.aspx?searchmode=anyword&searchtext=';
var bookObj = {};
Avoid deeply nested control flow statements. Open
Open
if (page !== '0') {
bookObj.Pages = page;
}