react-diffview

React component to display unified diffs.

Usage no npm install needed!

<script type="module">
  import reactDiffview from 'https://cdn.skypack.dev/react-diffview';
</script>

README

npm version Build Status Total downloads

diffview

React component to display unified diffs.

TODO

  • remove dependency on qwest in demo app, use fetch api
  • support unified diff
  • highlight code with prism.js
  • fix parse-diff to support single patch (e.g. fetched from github) without diff header
  • split view
  • github styles
  • allow to customize highlight function