gh-diff-html
generate GitHub like diff 😋
example of usage
var fs = var ghDiffHTML = var before = `import Vue from 'vue'const vm = new Vue({ el: '#app', data() { message: 'hello!!' }, methods: { hello() { alert(this.message) } }})` var after = `import Vue from 'vue'const vm = new Vue({ el: '#app', data() { message: 'helloooooooo!!' }, methods: { hello() { console.log(this.hi) } }, computed: { hi() { return 'hiiiiii!!' } }})` var html = var HTML = `<head> <link rel="stylesheet" href="./node_modules/diff2html/dist/diff2html.min.css"> <style>.d2h-files-diff { display: flex; height: initial;}.d2h-diff-tbody tr:first-of-type { display: none;}.d2h-diff-tbody>tr>td { height: 22px;}.d2h-file-side-diff { margin-bottom: 0;}</style></head><body></body>` fs