{"repo":"neighborhood999/react-gh-like-diff","free":true,"listed":false,"github":"https://github.com/neighborhood999/react-gh-like-diff","clone":"git clone https://github.com/neighborhood999/react-gh-like-diff.git","description":"➕➖ The react component to generate pretty HTML for comparing commits or text.","language":"JavaScript","stars":120,"topics":["react","diff","diff2html","comparison"],"license":"MIT","category":"ui-components","readme_excerpt":"react-gh-like-diff Generate Github like comparison based on diff2html. You can compare string or given unified diff to generate pretty HTML. Demo Installation Configuration react-gh-like-diff is based on diff2html. The default configuration: You can custom options for you want, just pass options as props. The configuration you can reference here. :mag right: Style Import css style make sure render correctly: You also can reference examples. Props past string defaults to '' Passing past string as past prop with current prop for comparison. current string defaults to '' Passing current string as current prop with past prop for comparison. diffString string defaults to '' Passing unified diff as prop to generate pretty HTML. options object optional, See here Reference diff2html docs for extra configuration setting. Inspiration nakajmg - gh-diff-html LICENSE MIT © Peng Jie","default_branch":null,"files":null,"tree":[],"storefront":"/r/neighborhood999","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/neighborhood999/react-gh-like-diff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}