Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
walk-package-graph
Advanced tools
High speed Node.js package dependency graph walker based on Node.js module resolution algorithm
walk-package-graph
traverses a Node.js package's dependency graph using Node.js module resolution algorithm
Traverses 1,633 packages within average 130ms with a core-i5 8GB ram machine.
npm run test
npm install walk-package-graph
import { walkPackageGraph } from 'walk-package-graph';
walkPackageGraph('/path/to/start', {
onEnd(rootNode) {
console.info('onEnd', rootNode.path);
},
onError(error) {
console.error('onError', error.path, error.message);
},
onResolve(node) {
console.info('onResolve', node.id, node.path, node.dependencies);
},
onUnresolve(node, unresolvedNames) {
console.error('onUnresolve', node.path, unresolvedNames);
},
onVisit(node) {
console.info('onVisit', node.path);
}
});
This project is licensed under MIT license.
FAQs
High speed Node.js package dependency graph walker based on Node.js module resolution algorithm
The npm package walk-package-graph receives a total of 5 weekly downloads. As such, walk-package-graph popularity was classified as not popular.
We found that walk-package-graph 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.