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

node-htmldiff

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-htmldiff - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

2

htmldiff-cli.js

@@ -21,3 +21,3 @@ #!/usr/bin/env node

function printUsage() {
var usage = cli + " v0.9.0\n\nUsage: " + cli + " beforeFile afterFile diffedFile [Options]\n\nbeforeFile:\n An HTML input file in its original form.\n\nafterFile:\n An HTML input file, based on beforeFile but with changes.\n\ndiffedFile:\n Name of the diffed HTML output file. All differences between beforeFile\n and afterFile will be surrounded with <ins> and <del> tags. If diffedFile\n is - (minus) the result will be written with console.log() to stdout.\n\nOptions:\n\n-c className (optional):\n className will be added as a class attribute on every <ins> and <del> tag.\n\n-p dataPrefix (optional):\n The data prefix to use for data attributes. The operation index data\n attribute will be named \"data-${dataPrefix-}operation-index\". If not\n used, the default attribute name \"data-operation-index\" will be added\n on every <ins> and <del> tag. The value of this attribute is an auto\n incremented counter.\n\n-t atomicTags (optional):\n Comma separated list of tag names. The list has to be in the form\n \"tag1,tag2,...\" e. g. \"head,script,style\". An atomic tag is one whose\n child nodes should not be compared - the entire tag should be treated\n as one token. This is useful for tags where it does not make sense to\n insert <ins> and <del> tags. If not used, the default list will be used:\n \"iframe,object,math,svg,script,video,head,style\".";
var usage = cli + " v0.9.0\n\nUsage: " + cli + " beforeFile afterFile diffedFile [Options]\n\nbeforeFile:\n An HTML input file in its original form.\n\nafterFile:\n An HTML input file, based on beforeFile but with changes.\n\ndiffedFile:\n Name of the diffed HTML output file. All differences between beforeFile\n and afterFile will be surrounded with <ins> and <del> tags. If diffedFile\n is - (minus) the result will be written with console.log() to stdout.\n\nOptions:\n\n-c className (optional):\n className will be added as a class attribute on every <ins> and <del> tag.\n\n-p dataPrefix (optional):\n The data prefix to use for data attributes. The operation index data\n attribute will be named \"data-${dataPrefix-}operation-index\". If not\n used, the default attribute name \"data-operation-index\" will be added\n on every <ins> and <del> tag. The value of this attribute is an auto\n incremented counter.\n\n-t atomicTags (optional):\n Comma separated list of tag names. The list has to be in the form\n \"tag1,tag2,...\" e. g. \"head,script,style\". An atomic tag is one whose\n child nodes should not be compared - the entire tag should be treated\n as one token. This is useful for tags where it does not make sense to\n insert <ins> and <del> tags. If not used, this default list will be used:\n \"iframe,object,math,svg,script,video,head,style\".";
console.log(usage);

@@ -24,0 +24,0 @@ }

@@ -6,3 +6,3 @@ {

"copyright": "©2018, idesis GmbH; ©2012 The Network Inc. and contributors",
"version": "0.9.1",
"version": "0.9.2",
"identifier": "de.idesis.node-htmldiff",

@@ -56,3 +56,4 @@ "keywords": [

"chai": "*",
"mocha": "*"
"mocha": "*",
"pkg": "4.3.1"
},

@@ -59,0 +60,0 @@ "scripts": {

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