hookdebug
v0.0.4
Published
A npm bin debug tool
Readme
hookdebug
A simple but useful tool, which hook the npm bin from #!/usr/bin/env node to #!/usr/bin/env node --inpect --debug-brk. Then the process could be started with support of attaching to the VS Code debugger.
Tested in macOS, maybe compatible with Linux, but not Windows.
Install
$ npm i -g hookdebugUsage
Usage: hkd <bin> [bin options]Examples
Debug yarn:
$ hookd yarnDebug roadhog build:
$ hookd roadhog buildDebug npm -h
$ hookd npm -h