Nomenclature Processing Machine

npm

Need private packages and team management tools?Check out npm Orgs. »

beautify-context

1.0.0 • Public • Published

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.createElementNS("http://www.w3.org/2000/svg", e) : document.createElement(e);
            return n.__n = e, n;
        }(u, E), e)) {
            for (;e.firstChild; ) l.appendChild(e.firstChild);
            e.parentNode && e.parentNode.replaceChild(l, e), d(e, !0);
                              ^^^^^^^^^^
        }
        var _ = l.firstChild, p = l.__preactattr_, c = t.children;
        if (null == p) {
            p = l.__preactattr_ = {};
            for (var s = l.attributes, h = s.length; h--; ) p[s[h].name] = s[h].value;

Keywords

none

install

npm i beautify-context

Downloadsweekly downloads

2

version

1.0.0

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability