New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

beautify-context

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautify-context

Download, beautify and print lines from a minified JavaScript source

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

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;

FAQs

Package last updated on 27 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts