0.0.5 • Published 2 years ago

@armantang/html-diff v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Html Diff

Generate html content unified or side-by-side differences.

Install

pnpm add @armantang/html-diff

Quick Start

import '@armantang/html-diff/dist/index.css'
import HtmlDiff from '@armantang/html-diff'

const oldHtml = `<div>hello</div>`
const newHtml = `<div>hello world</div>`

const diff = new HtmlDiff(oldHtml, newHtml)
const unifiedContent = diff.getUnifiedContent()
const sideBySideContents = diff.getSideBySideContents()

Preview

unified differences

home

side-by-side differences

home

0.0.3

2 years ago

0.0.2

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.1

3 years ago