diff2html
Advanced tools
Comparing version 0.1.9 to 0.2.0-1
{ | ||
"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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
74
0
0
19564
6
442
- Removedcommander@2.7.1
- Removedextend@2.0.0
- Removedpkginfo@0.3.0
- Removedcommander@2.7.1(transitive)
- Removedextend@2.0.0(transitive)
- Removedgraceful-readlink@1.0.1(transitive)
- Removedpkginfo@0.3.0(transitive)