@open-wc/semantic-dom-diff
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

Semantic Dom Diff

Part of Open Web Component Recommendation open-wc

We want to provide a good set of default on how to facilitate your web component.

CircleCI BrowserStack Status Renovate enabled

Manual Setup

yarn add @open-wc/semantic-dom-diff --dev

Basics

import { getSemanticDomDiff } from '@open-wc/semantic-dom-diff';

const leftTree = `
  <div>foo</div>
`;
const rightTree = `
  <div>bar</div>
`;

// Diff will be an object if there is a difference, otherwise undefined
const diff = getSemanticDomDiff(leftTree, rightTree);

Package Sidebar

Install

npm i @open-wc/semantic-dom-diff@0.7.2

Version

0.7.2

License

MIT

Unpacked Size

13 kB

Total Files

13

Last publish

Collaborators

  • passle
  • d4kmor
  • larsdenbakker
  • modern-web