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.
cortex-deps-traveller
Advanced tools
Traveling cortex packages through dependencies tree.
$ npm install cortex-deps-traveller --save
var traveller = require('cortex-deps-traveller')(built_root, {
maxDepth: 3
});
traveller.toJSONTree(pkg, function(err, tree) {
});
// Advanced Usage, visit will travel the dep tree with BFS (which is better for performance)
traveller.visit(pkg, {
enter: function(node, parent) {
node.pkg; // pkg info
node.from; // resolved from
if(parent == null) {
// is root node, with non-parent
}
}, leave: function(node, parent) {
}
}, function(err) {
// all things is done
});
var Traveller = require('cortex-deps-traveller').Traveller;
Generate dependencies tree from pkg
Visit the dependencies tree of pkg with a visitor
Return a sorted array from the tree
traveller.toJSONTree(pkg, function(err, json) {
var sorted = traveller.topsort(json, pkg.name);
});
Read package information object from name and range, which utilized the internal cache in traveller
traveller.resolvePackage(name, range, function(err, pkg) {
// pkg is read from cortex.json
});
Return a version resolved from range for package
traveller.resolveRange(name, range, function(err, version) {
//
});
Return an array of available versions.
traveller.readVersions(name, function(err, versions) {
// do something on versions
});
MIT
FAQs
Travel dependency tree for cortex
The npm package cortex-deps-traveller receives a total of 2 weekly downloads. As such, cortex-deps-traveller popularity was classified as not popular.
We found that cortex-deps-traveller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
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.