2.3.0 • Published 1 year ago
in-situ v2.3.0
in-situ
in-situ is a simple CLI application taking a JavaScript file URL and a line/column location inside
it. It will download the JavaScript file, beautify it, and print the context around the given
location.
Installation
Install it globally with your favorite node package manager. Example:
npm install --global in-situNote: instead of installing it, you can use npx in-situ to run it directly.
Usage
Usage: in-situ [options] <LOCATION>
Download, beautify and print lines from a minified JavaScript source
The <LOCATION> argument is an URL or a file path to a JavaScript bundle, followed by a location formatted as ':line:column' or ':osition'. Example: 'https://example.com/bundle.js:10:20' or './bundle.js:123'.
Options:
-A, --after-context <num> print <num> lines of trailing context after the selected line
-B, --before-context <num> print <num> lines of leading context before the selected line
-C, --context <num> print <num> lines of leading and trailing context surrounding the selected line
--no-source-map don't try to use a source map
-d, --debug output extra debugging
-V, --version output the version number
-h, --help output usage informationExample
in-situ https://unpkg.com/preact@10.4.4/dist/preact.min.js:1:3389File: ../src/diff/props.js
}
}
if (value) {
for (let i in value) {
if (!oldValue || value[i] !== oldValue[i]) {
^
setStyle(s, i, value[i]);
}
}
}
}2.3.0
1 year ago
2.2.0
1 year ago
2.2.0-beta.0
4 years ago
2.1.0
4 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
2.0.0-beta.1
5 years ago
2.0.0-beta.0
5 years ago