Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diff2html-cli

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff2html-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0-1

4

package.json
{
"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);
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc