1.0.12 • Published 6 months ago

debug-sandbox v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Debug Sandbox

Install:

npm i debug-sandbox -g

Spawns a Node.js sandbox process with an attached debugger to inspect via Chromium.

Useful for quickly checking how some code runs in a Chromium console, with source definions etc.

Runs as an ESM module in strict mode, with require defined globally, additionally includes a global npm function for importing modules you might not have installed localy via esm.sh, ex:

const tinyRest = await npm('tiny-rest')

Note that this is widely insecure, and could potentially be used to attack the target device, as this package additionally enables the importing of native node modules. Read more in the official Node.js documentation. These modules are sourcemapped with functional breakpoints.

You can also import non-JS files this way via:

const packageInfo = await npm('tiny-rest/package.json', { with: { type: 'json' }})

Usage:

$ sbx

Recommended Chromium extensions which auto-launches an inspect window when a Node.js inspect process is detected is NiM.

1.0.12

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago