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.
neuron-tree
Advanced tools
Utilities to generate the config.tree
for neuron.
<name>: {
<version>: {
// dependencies and async dependencies
<dep-name>: [
// synchronous dependencies
{
<sync-dep-range>: <sync-dep-version>, ...
},
// asynchronous dependencies
{
<async-dep-range>: <async-dep-version>, ...
}
]
}
}
$ npm install neuron-tree --save
var tree = require('neuron-tree');
tree(pkg, {
cwd: cwd,
built_root: built_root,
dependencyKeys: ['dependencies', 'asyncDependencies']
}, function(err, tree, shrinkwrap){
// ...
});
Generates the object tree which neuron uses as the config.tree
.
Object
cortex jsonObject
path
path=
the path from where we can find all installed and built packagesObject=
the object of cortex-shrinkwrap.jsonArray=['dependencies', 'asyncDependencies']
Boolean=false
if true, neuron-tree
will always generate new shrinkwrap tree.The array of types of dependencies, default to
[
"dependencies",
"asyncDependencies"
]
You could include other keys of dependencies in the array, available keys:
'dependencies'
, 'asyncDependencies'
, 'engines'
, devDependencies
options.shrinkwrap
not defined, then:options.ignore_shrink_file
not defined, neuron-tree
will try to generate shrinkwrap itself, else:neuron-tree
will try to read the cortex-shrinkwrap.json, else:neuron-tree
will try to generate shrinkwrap itself.Object
the shrinked object of shrinkedArray.<String>
Parses the shrinked B+ tree, and generates a simpler tree for config.tree
of neuron.
MIT
FAQs
Generates the config.tree of neuron
The npm package neuron-tree receives a total of 0 weekly downloads. As such, neuron-tree popularity was classified as not popular.
We found that neuron-tree 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.