beautify-context
beautify-context
is a simple CLI application taking a JavaScript file URL and a line/column
position inside it. It will download the JavaScript file, beautify it, and print the context around
the given position.
Installation
npm install --global beautify-context
Usage
beautify-context URL:LINE:COLUMN
Example
beautify-context https://unpkg.com/preact@8.2.9/dist/preact.min.js:1:3427
var n = t ? document : document; return n__n = e n; }u E e)) for ;efirstChild; l; eparentNode && eparentNode ; ^^^^^^^^^^ var _ = lfirstChild p = l__preactattr_ c = tchildren; if null == p p = l__preactattr_ = {}; for var s = lattributes h = slength; h--; pshname = shvalue;