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 1.0.0-1 to 1.0.0-2

2

package.json
{
"name": "diff2html-cli",
"version": "1.0.0-1",
"version": "1.0.0-2",

@@ -5,0 +5,0 @@ "homepage": "https://www.github.com/rtfpessoa/diff2html-cli",

@@ -39,21 +39,36 @@ # Diff to Html CLI by [rtfpessoa](https://github.com/rtfpessoa)

Usage: diff2html [git-diff options]
diff2html [options]
Options:
-s, --style Output style
[string] [choices: "line", "side"] [default: "line"]
-f, --format Output format
[string] [choices: "html", "json"] [default: "html"]
-d, --diff Diff style [string] [choices: "word", "char"] [default: "word"]
-i, --input Diff input source
[string] [choices: "file", "command"] [default: "command"]
-o, --output Output destination
[string] [choices: "preview", "stdout"] [default: "preview"]
-F, --file Send output to file (overrides output option) [string]
--version Show version number [boolean]
-h, --help Show help [boolean]
-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.
Example:
Examples:
diff2html -s line -f html -d word -i diff last commit, line by line, word
command -o preview -- -M HEAD~1 comparison between lines,previewed
in the browser and input from git
diff command
diff2html -i file -- my-file-diff.diff reading the input from a file
diff2html -f json -o stdout -- -M HEAD~1 print json format to stdout
diff2html -F my-pretty-diff.html -- -M print to file
HEAD~1
diff2html -p -l "HEAD~1"
> NOTE: notice the " in the example
© 2015 rtfpessoa
For support, check out https://github.com/rtfpessoa/diff2html-cli
> NOTE: notice the `--` in the examples
## Contributions

@@ -60,0 +75,0 @@

@@ -79,3 +79,3 @@ /*

.alias('h', 'help')
.epilog('Copyright 2015\n' +
.epilog('© 2015 rtfpessoa\n' +
'For support, check out https://github.com/rtfpessoa/diff2html-cli')

@@ -82,0 +82,0 @@ .argv;

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