@amaui/diff
v1.0.11141
Published
Diff algorithm
Downloads
47
Maintainers
Readme
Getting started
Add
// yarn
yarn add @amaui/diff
// npm
npm install @amaui/diff
Use
import AmauiDiff from '@amaui/diff';
// Make a new AmauiDiff instance
// with an optional initial value for options
const amauiDiff = new AmauiDiff();
// Diff
const diff = amauiDiff.diff('aaa', 'aab');
// {
// items: ['r', 2, 'a', 2, 'b']
// }
// Update
amauiDiff.update('aaa', diff);
// 'aab'
Dev
Install
yarn
Test
yarn test
Prod
Build
yarn build
Docs
Might be soon...