@muhammadhamadawan/diff-html
v2.0.2
Published
Get strings difference as HTML
Downloads
4
Readme
const { splitView } = require('@muhammadhamadawan/diff-html');
Or;
import { splitView } from '@muhammadhamadawan/diff-html';
type Payload = {
oldString: string,
newString: string,
language: 'plaintext' | 'json' | 'yaml' | 'javascript' | 'java' | 'python' | 'sql' | 'xml' | 'bash',
diffStyle: 'word' | 'char',
forceInlineComparison: boolean,
context: number,
ignoreMatchingLines?: string
hideUnchangesLines?: boolean,
theme: 'light' | 'dark'
}
splitView({
oldString: "Old String",
newString: "New String",
language: "plainText",
diffStyle: "word",
forceInlineComparison: false,
context: 10,
hideUnchangesLines: false,
theme: 'light'
})