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 5.2.3 to 5.2.4

4

lib/cli.js

@@ -119,2 +119,6 @@ "use strict";

{
searchValue: '//diff2html-fileContentToggle',
replaceValue: config.fileContentToggle ? "diff2htmlUi.fileContentToggle();" : '',
},
{
searchValue: '//diff2html-synchronisedScroll',

@@ -121,0 +125,0 @@ replaceValue: config.synchronisedScroll ? "diff2htmlUi.synchronisedScroll();" : '',

@@ -38,2 +38,3 @@ "use strict";

showFilesOpen: argv.summary === 'open' || false,
fileContentToggle: argv.fileContentToggle,
synchronisedScroll: argv.synchronisedScroll,

@@ -40,0 +41,0 @@ highlightCode: argv.highlightCode,

@@ -10,2 +10,3 @@ export declare type StyleType = 'line' | 'side';

export declare type Configuration = {
fileContentToggle: boolean;
synchronisedScroll: boolean;

@@ -12,0 +13,0 @@ showFilesOpen: boolean;

import { StyleType, SummaryType, LineMatchingType, FormatType, InputType, OutputType, DiffyType, DiffStyleType } from './types';
export declare type Argv = {
style: StyleType;
fileContentToggle: boolean;
synchronisedScroll: boolean;

@@ -5,0 +6,0 @@ highlightCode: boolean;

@@ -21,2 +21,3 @@ "use strict";

style: 'line',
fileContentToggle: true,
synchronisedScroll: true,

@@ -63,2 +64,8 @@ highlightCode: true,

})
.option('fileContentToggle', {
alias: 'fct',
describe: 'Show viewed checkbox to toggle file content',
type: 'boolean',
default: defaults.fileContentToggle,
})
.option('synchronisedScroll', {

@@ -65,0 +72,0 @@ alias: 'sc',

2

package.json
{
"name": "diff2html-cli",
"version": "5.2.3",
"version": "5.2.4",
"homepage": "https://diff2html.xyz/index.html#cli",

@@ -5,0 +5,0 @@ "description": "Fast Diff to colorized HTML",

@@ -76,2 +76,3 @@ # diff2html-cli

| -s | --style | Output style | `line`, `side` | `line` |
| --fct | --fileContentToggle | Adds a viewed checkbox to toggle file content | `true`, `false` | `true` |
| --sc | --synchronisedScroll | Synchronised horizontal scroll | `true`, `false` | `true` |

@@ -78,0 +79,0 @@ | --hc | --highlightCode | Highlight code | `true`, `false` | `true` |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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