
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Parse package manager lock files (for now yarn.lock) to generate dependency graph.
Import Deparser library into your code,
and then instantiate with path to package.json and yarn.lock.
Start using the methods on your instance.
const Deparser = require('Deparser');
const deparser = new Deparser();
const dependencyTree = deparser.getDependencyTree();
const directDependencies = deparser.getDirectDependencies();
const intents = deparser.getAllIntents();
{
"dependencies": {
"moment": "^2.22.2",
"react": "^16.4.2"
},
"devDependencies": {
"mocha": "^5.2.0"
},
"optionalDependencies": {
"fsevents": "^1.2.4"
}
}
Result of dependency tree from the above package.json and yarn.lock is tree.json:
[
{
"name": "moment",
"version": "2.22.2",
"type": "dependencies"
},
{
"name": "react",
"version": "16.4.2",
"type": "dependencies",
"children": [...]
},
{
"name": "mocha",
"version": "5.2.0",
"type": "devDependencies",
"children": [...]
},
{
"name": "fsevents",
"version": "1.2.4",
"type": "optionalDependencies",
"children": [...]
}
]
FAQs
Dependency parser for JavaScript dependencies
The npm package deparser receives a total of 0 weekly downloads. As such, deparser popularity was classified as not popular.
We found that deparser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.