Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
inspector-proxy
Advanced tools
node inspector proxy
$ npm i inspector-proxy -g
Inspect
# base usage
$ inspector-proxy ./test.js
# appoint port
$ inspector-proxy --proxy=9228 --debug=9888 ./test.js
Open chrome devtools url
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9228/__ws_proxy__
Using in code
const proxy = require('inspector-proxy');
const cfork = require('cfork');
// use cfork to inspect file
cfork({
exec: './test.js',
execArgv: [ '--inspect' ],
count: 1,
refork: true,
}).on('fork', worker => {
let port;
// match debug port from argv
worker.process.spawnargs
.some(arg => {
let matches;
// node-6: --inspect=9888
// node-8: --inspect-port=9888
if (arg.startsWith('--inspect') && (matches = arg.match(/\d+/))) {
port = matches[0];
return true;
}
return false;
});
proxy({ proxyPort: 9229, debugPort: port })
.then(({ url }) => {
console.log(`\nproxy url: ${url}\n`);
});
});
FAQs
node inspector proxy
The npm package inspector-proxy receives a total of 0 weekly downloads. As such, inspector-proxy popularity was classified as not popular.
We found that inspector-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.