Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 17 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.