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

diff2html

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff2html - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0-1

LICENSE

8

package.json
{
"name": "diff2html",
"version": "0.1.9",
"version": "0.2.0-1",

@@ -56,5 +56,2 @@ "homepage": "https://www.github.com/rtfpessoa/diff2html-nodejs",

"dependencies": {
"commander": "2.7.1",
"extend": "2.0.0",
"pkginfo": "0.3.0"
},

@@ -74,5 +71,4 @@

"bin",
"src",
"dist"
"src"
]
}

@@ -29,2 +29,4 @@ # Diff to Html Node Module by [rtfpessoa](https://github.com/rtfpessoa)

* Node Package CLI [diff2html-cli](https://github.com/rtfpessoa/diff2html-nodejs-cli)
## Setup

@@ -36,15 +38,28 @@

Usage: diff2html [git-diff options]
Require the library using:
Options:
```
var Diff2Html = require('diff2html').Diff2Html;
```
-h, --help output usage information
-V, --version output the version number
-i, --input [file] Diff input file.
-o, --output [file] Output to file path. Defaults to stdout.
-p, --preview Open preview in the browser.
-l, --line Line by Line diff.
-s, --side Side by Side diff.
-j, --json Export diff in json format.
> Pretty Line-by-Line Html From Git Word Diff Output
Diff2Html.getPrettyHtmlFromDiff(exInput)
> Pretty Side-by-Side Html From Git Word Diff Output
Diff2Html.getPrettySideBySideHtmlFromDiff(exInput)
> Intermediate Json From Git Word Diff Output
Diff2Html.getJsonFromDiff(exInput)
> Pretty Line-by-Line Html From Json
Diff2Html.getPrettyHtmlFromJson(exInput)
> Pretty Side-by-Side Html From Json
Diff2Html.getPrettySideBySideHtmlFromJson(exInput)
## Contribution

@@ -51,0 +66,0 @@

Sorry, the diff of this file is not supported yet

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