Skip to content

26F-Studio/diff-match-patch-wasm

Repository files navigation

diff-match-patch-wasm

About

This is a WebAssembly wrapper around the diff-match-patch-rs library. It is intended to be used in the browser.

Installation

npm install diff-match-patch-wasm

Usage

import { Differ } from 'diff-match-patch-wasm';

const dmp = new Differ();
const diffs = dmp.diff_main('Hello, world!', 'Goodbye, world!');
console.log(diffs);

Development

To build the WebAssembly module, run:

wasm-pack build

To run the tests, run:

wasm-pack test --chrome --headless

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Packages

No packages published

Languages