diff2html-cli
Advanced tools
Comparing version 0.1.0 to 0.2.0-1
{ | ||
"name": "diff2html-cli", | ||
"version": "0.1.0", | ||
"version": "0.2.0-1", | ||
@@ -59,3 +59,3 @@ "homepage": "https://www.github.com/rtfpessoa/diff2html-nodejs-cli", | ||
"pkginfo": "0.3.0", | ||
"diff2html": "0.1.9" | ||
"diff2html": "0.2.0-4" | ||
}, | ||
@@ -62,0 +62,0 @@ |
@@ -39,3 +39,3 @@ require('pkginfo')(module, 'version'); | ||
} else { | ||
console.error("Input is empty"); | ||
console.error("The diff is empty. Try another command."); | ||
program.help(); | ||
@@ -73,11 +73,11 @@ } | ||
function getHtml(program, input) { | ||
var Diff2Html = require('diff2html').Diff2Html; | ||
var diff2Html = require('diff2html').Diff2Html; | ||
if (program.side) { | ||
return Diff2Html.getPrettySideBySideHtmlFromDiff(input); | ||
return diff2Html.getPrettySideBySideHtmlFromDiff(input); | ||
} else if (program.json) { | ||
return JSON.stringify(Diff2Html.getJsonFromDiff(input)); | ||
return JSON.stringify(diff2Html.getJsonFromDiff(input)); | ||
} else { | ||
return Diff2Html.getPrettyHtmlFromDiff(input); | ||
return diff2Html.getPrettyHtmlFromDiff(input); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11344
+ Addeddiff2html@0.2.0-4(transitive)
- Removeddiff2html@0.1.9(transitive)
Updateddiff2html@0.2.0-4