{"_id":"inspector-proxy","_rev":"1212848","name":"inspector-proxy","description":"node inspector proxy","dist-tags":{"latest":"1.2.2"},"maintainers":[{"name":"npm:wanghx","email":""}],"time":{"modified":"2021-10-13T05:46:30.000Z","created":"2017-09-08T15:02:52.760Z","1.2.2":"2021-07-07T13:55:01.957Z","1.2.1":"2018-02-13T02:18:53.828Z","1.2.0":"2018-02-13T02:18:01.666Z","1.1.0":"2017-09-21T06:27:36.265Z","1.0.0":"2017-09-13T08:50:41.386Z","0.5.0":"2017-09-11T06:30:34.004Z","0.4.0":"2017-09-11T04:00:12.463Z","0.3.0":"2017-09-09T08:05:27.858Z","0.2.0":"2017-09-09T04:29:37.015Z","0.1.0":"2017-09-08T15:02:52.760Z"},"users":{},"author":{"name":"wanghx"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"versions":{"1.2.2":{"name":"inspector-proxy","version":"1.2.2","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"main":"index.js","types":"index.d.ts","dependencies":{"cfork":"^1.6.1","debug":"^3.0.1","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0","snyk":"^1.230.5"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"12, 14"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","author":{"name":"wanghx"},"license":"MIT","snyk":true,"gitHead":"50ecb09ac20ccdf920197fdb4ccd9081384e2c32","_id":"inspector-proxy@1.2.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.12","dist":{"shasum":"490047893a21ed9d032ea179deda078eac9a1de9","size":5029,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-1.2.2.tgz"},"_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"directories":{},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy_1.2.2_1625666101801_0.9179467557460719"},"_hasShrinkwrap":false,"publish_time":1625666101957,"_cnpm_publish_time":1625666101957},"1.2.1":{"name":"inspector-proxy","version":"1.2.1","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"main":"index.js","types":"index.d.ts","dependencies":{"cfork":"^1.6.1","debug":"^3.0.1","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","index.d.ts","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"ac43be5a2176c8c93af75d064de002026434172c","_id":"inspector-proxy@1.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"870d2f419150178b5c3765b2852ae7289be54079","size":4499,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-1.2.1.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy_1.2.1_1518488333777_0.034390667349250226"},"_hasShrinkwrap":false,"publish_time":1518488333828,"_cnpm_publish_time":1518488333828},"1.2.0":{"name":"inspector-proxy","version":"1.2.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"main":"index.js","types":"index.d.ts","dependencies":{"cfork":"^1.6.1","debug":"^3.0.1","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"97ceb792dee00bbebf8c20d0e02addff0802e188","_id":"inspector-proxy@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"06b39cd3da8ad1cfd4e3148787fe932e4cf9784b","size":4340,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-1.2.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy_1.2.0_1518488281586_0.49712717884660984"},"_hasShrinkwrap":false,"publish_time":1518488281666,"_cnpm_publish_time":1518488281666},"1.1.0":{"name":"inspector-proxy","version":"1.1.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","debug":"^3.0.1","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"878847501235f3ee0a25a29ae9b0a455c2d518e3","_id":"inspector-proxy@1.1.0","_shasum":"c4f769025cae1bc37fa330a40e53f33fcef837db","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"c4f769025cae1bc37fa330a40e53f33fcef837db","size":3486,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-1.1.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-1.1.0.tgz_1505975256101_0.693672911496833"},"directories":{},"publish_time":1505975256265,"_cnpm_publish_time":1505975256265,"_hasShrinkwrap":false},"1.0.0":{"name":"inspector-proxy","version":"1.0.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"1e49b77f3272f0f180d08d91a1be7c62610c9458","_id":"inspector-proxy@1.0.0","_shasum":"835962a5b1f6e21880d399d5e487593b9a06074b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"835962a5b1f6e21880d399d5e487593b9a06074b","size":3309,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-1.0.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-1.0.0.tgz_1505292641270_0.8624518346041441"},"directories":{},"publish_time":1505292641386,"_hasShrinkwrap":false,"_cnpm_publish_time":1505292641386},"0.5.0":{"name":"inspector-proxy","version":"0.5.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"8c4eb8755c7b13d8e0fcbd4dba0fda9f2184d3ee","_id":"inspector-proxy@0.5.0","_shasum":"530814d47f6014ac03415628ada9f9b546b945b1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"530814d47f6014ac03415628ada9f9b546b945b1","size":3041,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-0.5.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-0.5.0.tgz_1505111433912_0.3096868731081486"},"directories":{},"publish_time":1505111434004,"_hasShrinkwrap":false,"_cnpm_publish_time":1505111434004},"0.4.0":{"name":"inspector-proxy","version":"0.4.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","opn":"^5.1.0","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"f80433b1a75528cd87ac4c39e11a685718dcf9d0","_id":"inspector-proxy@0.4.0","_shasum":"105005feae6f45fd2165a48de437ed564c0e60b9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"105005feae6f45fd2165a48de437ed564c0e60b9","size":3065,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-0.4.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-0.4.0.tgz_1505102412331_0.676688389852643"},"directories":{},"publish_time":1505102412463,"_cnpm_publish_time":1505102412463,"_hasShrinkwrap":false},"0.3.0":{"name":"inspector-proxy","version":"0.3.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","opn":"^5.1.0","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","coffee":"^4.1.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"2031c7b776a4663d5927f6e95e64dbb68c2e68d3","_id":"inspector-proxy@0.3.0","_shasum":"ad5c24533be638ba577577cca5a455dbab604efb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"ad5c24533be638ba577577cca5a455dbab604efb","size":2899,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-0.3.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-0.3.0.tgz_1504944327718_0.09177649114280939"},"directories":{},"publish_time":1504944327858,"_hasShrinkwrap":false,"_cnpm_publish_time":1504944327858},"0.2.0":{"name":"inspector-proxy","version":"0.2.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","opn":"^5.1.0","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","cross-spawn":"^5.1.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"c6ee66181ee7ed5ede56d9ded0acd4c640650a1b","_id":"inspector-proxy@0.2.0","_shasum":"898140c645fcaef3968afc6df2b0f42c77cd6bab","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"898140c645fcaef3968afc6df2b0f42c77cd6bab","size":2465,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-0.2.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-0.2.0.tgz_1504931376885_0.29549777158536017"},"directories":{},"publish_time":1504931377015,"_hasShrinkwrap":false,"_cnpm_publish_time":1504931377015},"0.1.0":{"name":"inspector-proxy","version":"0.1.0","description":"node inspector proxy","bin":{"inspector-proxy":"bin/bin.js"},"dependencies":{"cfork":"^1.6.1","co":"^4.6.0","opn":"^5.1.0","tcp-proxy.js":"^1.0.5","urllib":"^2.24.0"},"devDependencies":{"autod":"^2.8.0","egg-bin":"^3.4.0","egg-ci":"^1.7.0","eslint":"^4.0.0","eslint-config-egg":"^4.2.0","nyc":"^11.2.1","webstorm-disable-index":"^1.2.0","ws":"^3.1.0"},"engines":{"node":">=6.0.0"},"scripts":{"autod":"autod","lint":"eslint .","test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"nyc -r json -r lcov -r text-summary npm test","ci":"npm run lint && egg-bin pkgfiles --check && npm run cov","pkgfiles":"egg-bin pkgfiles"},"ci":{"version":"6, 8"},"repository":{"type":"git","url":"git+https://github.com/whxaxes/inspector-proxy.git"},"bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","files":["index.js","bin"],"author":{"name":"wanghx"},"license":"MIT","gitHead":"09f6b3b4da408b6900189500083de38b20fbf4e8","_id":"inspector-proxy@0.1.0","_shasum":"eba38ecbbace4a9b2e5379b0f383df47578a9711","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"wanghx","email":"whxaxes@gmail.com"},"dist":{"shasum":"eba38ecbbace4a9b2e5379b0f383df47578a9711","size":2339,"noattachment":false,"key":"/inspector-proxy/-/inspector-proxy-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inspector-proxy/download/inspector-proxy-0.1.0.tgz"},"maintainers":[{"name":"npm:wanghx","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspector-proxy-0.1.0.tgz_1504882972666_0.4486291913781315"},"directories":{},"publish_time":1504882972760,"_hasShrinkwrap":false,"_cnpm_publish_time":1504882972760}},"readme":"# inspector-proxy\n\nnode inspector proxy\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Appveyor status][appveyor-image]][appveyor-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n\n[npm-image]: https://img.shields.io/npm/v/inspector-proxy.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/inspector-proxy\n[travis-url]: https://travis-ci.org/whxaxes/inspector-proxy\n[travis-image]: http://img.shields.io/travis/whxaxes/inspector-proxy.svg\n[appveyor-url]: https://ci.appveyor.com/project/whxaxes/inspector-proxy/branch/master\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/github/whxaxes/inspector-proxy?branch=master&svg=true\n[coveralls-url]: https://coveralls.io/r/whxaxes/inspector-proxy\n[coveralls-image]: https://img.shields.io/coveralls/whxaxes/inspector-proxy.svg\n\n## Usage\n\n```bash\n$ npm i inspector-proxy -g\n```\n\nCLI\n\n```bash\n# base usage\n$ inspector-proxy ./test.js\n\n# appoint port\n$ inspector-proxy --proxy=9228 --debug=9888 ./test.js\n```\n\n```bash\n# exec by node\n$ node --inspect ./test.js\n\n# start a inspect proxy in other terminal\n$ inspector-proxy --proxy=9228\n```\n\nwork with `nodemon`\n\n```bash\n$ nodemon --exec 'inspector-proxy ./test.js'\n```\n\nUsing in code\n\n```js\nconst InspectorProxy = require('inspector-proxy');\nconst cfork = require('cfork');\nconst proxy = new InspectorProxy({ port: 9229 });\n\n// use cfork to inspect file\ncfork({\n  exec: './test.js',\n  execArgv: [ '--inspect' ],\n  count: 1,\n  refork: true,\n}).on('fork', worker => {\n  let port;\n  // match debug port from argv\n  worker.process.spawnargs\n    .some(arg => {\n      let matches;\n      // node-6: --inspect=9888\n      // node-8: --inspect-port=9888\n      if (arg.startsWith('--inspect') && (matches = arg.match(/\\d+/))) {\n        port = matches[0];\n        return true;\n      }\n      return false;\n    });\n\n  proxy.start({ debugPort: port })\n    .then(() => {\n      console.log(`\\nproxy url: ${proxy.url}\\n`);\n    });\n});\n```\n\n## Log Explanation\n\n```bash\n# inspector server opened\n9229 opened\n\n# inspector server closed\n9229 closed\n\n# inspector has been attached\nDebugger attached\n```\n\n## Debug log\n\n```bash\n$ DEBUG=*-proxy inspector-proxy ./test.js\n```\n\n## License\n\nMIT\n\n---\n\n![](./screen.gif)\n","_attachments":{},"homepage":"https://github.com/whxaxes/inspector-proxy#readme","bugs":{"url":"https://github.com/whxaxes/inspector-proxy/issues"},"license":"MIT"}