1.2.1 • Published 12 months ago

monaco-diff v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

monaco-diff

npm npm bundle size check

Text diff library exported from monaco-editor-core, which is core of VS Code.

Install

npm install monaco-diff

Usage

import { diff, linesDiff } from "monaco-diff";

console.log(
  diff(
    "just some text\n\nHello World\n\nSome more text".split("\n"),
    "just some Text\n\nHello World\n\nSome more changes".split("\n")
  )
);

console.log(
  linesDiff(
    "just some text\n\nHello World\n\nSome more text".split("\n"),
    "just some Text\n\nHello World\n\nSome more changes".split("\n")
  )
);
1.2.0

12 months ago

1.2.1

12 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago