1.0.11141 • Published 3 years ago

@amaui/diff v1.0.11141

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

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...