{"id":16527683,"url":"https://github.com/benoitzugmeyer/in-situ","last_synced_at":"2025-03-16T19:31:19.565Z","repository":{"id":42521310,"uuid":"141604547","full_name":"BenoitZugmeyer/in-situ","owner":"BenoitZugmeyer","description":"Download, beautify and print lines from a minified JavaScript source","archived":false,"fork":false,"pushed_at":"2025-02-12T10:24:55.000Z","size":470,"stargazers_count":25,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T12:26:40.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenoitZugmeyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-19T16:21:16.000Z","updated_at":"2024-09-18T15:58:57.000Z","dependencies_parsed_at":"2024-10-27T11:09:45.334Z","dependency_job_id":"2d4a49c4-fc26-4bda-8b05-cc94c2704ccf","html_url":"https://github.com/BenoitZugmeyer/in-situ","commit_stats":{"total_commits":60,"total_committers":2,"mean_commits":30.0,"dds":"0.23333333333333328","last_synced_commit":"998db45a6ed6683b5925092b218dae5d7601c660"},"previous_names":["benoitzugmeyer/beautify-context"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fin-situ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fin-situ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fin-situ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2Fin-situ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenoitZugmeyer","download_url":"https://codeload.github.com/BenoitZugmeyer/in-situ/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826780,"owners_count":20354220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T17:36:27.005Z","updated_at":"2025-03-16T19:31:19.294Z","avatar_url":"https://github.com/BenoitZugmeyer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# in-situ\n\n`in-situ` is a simple CLI application taking a JavaScript file URL and a line/column location inside\nit. It will download the JavaScript file, beautify it, and print the context around the given\nlocation.\n\n## Installation\n\nInstall it globally with your favorite node package manager. Example:\n\n```\nnpm install --global in-situ\n```\n\nNote: instead of installing it, you can use `npx in-situ` to run it directly.\n\n## Usage\n\n```\nUsage: in-situ [options] \u003cLOCATION\u003e\n\nDownload, beautify and print lines from a minified JavaScript source\n\nThe \u003cLOCATION\u003e 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'.\n\nOptions:\n  -A, --after-context \u003cnum\u003e   print \u003cnum\u003e lines of trailing context after the selected line\n  -B, --before-context \u003cnum\u003e  print \u003cnum\u003e lines of leading context before the selected line\n  -C, --context \u003cnum\u003e         print \u003cnum\u003e lines of leading and trailing context surrounding the selected line\n  --no-source-map             don't try to use a source map\n  -d, --debug                 output extra debugging\n  -V, --version               output the version number\n  -h, --help                  output usage information\n```\n\n## Example\n\n```\nin-situ https://unpkg.com/preact@10.4.4/dist/preact.min.js:1:3389\n```\n\n```js\nFile: ../src/diff/props.js\n                                }\n                        }\n\n                        if (value) {\n                                for (let i in value) {\n                                        if (!oldValue || value[i] !== oldValue[i]) {\n                                                                      ^\n                                                setStyle(s, i, value[i]);\n                                        }\n                                }\n                        }\n                }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitzugmeyer%2Fin-situ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitzugmeyer%2Fin-situ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitzugmeyer%2Fin-situ/lists"}