## Features
Last updated 2 years ago by samirtalwar .
UNLICENSED · Original npm · Tarball · package.json
$ cnpm install ast-aware-diff-view 
SYNC missed versions from official npm registry.

AST-aware Diff View


  • line-based diffing
  • syntax highlighting with Prism (done properly, not just per line)
  • highlight the relevant AST node on hover (JavaScript only)
  • collapse/expend long snippets of unchanged code
  • server side rendering (./src/main returns a plain HTML string)


  • add some tests...
  • support more languages

It is currently supporting JavaScript only because it's using Babylon to find the start and end position of each AST node. The next step is to switch to something like to try and support a range of languages (including python).


See ./example/example.html for an example of output (with some CSS and javascript). This was generated by running (cd ./example; node generate.js).

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

1 Versions

  • 1.0.1                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (20)
Dev Dependencies (3)
Dependents (0)

Copyright 2014 - 2016 © |