
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
tree-manager
Advanced tools
nodejs connector for jstree library.
To run the example go to example folder run npm install and point your browser to localhost:5000.
var TreeManager = require('../lib/treemanager');
var rootDir = __dirname + '/test_dir_root';
var treeManager = new TreeManager(rootDir);
Set the root path whil instantiating the module.
You can change the root directory on the fly by calling treeManager.setRoot(path) with a path as an argument.
walkDirWalks down recursivelly the root folder.
Example:
treeManager.walkDir(rootDir, function (err, tree) {
console.log(tree);
});
Parameters:
createNodeCreates a new file or folder
Example:
var type = 'file';
var filename = path.join(req.query.id, req.query.text);
treeManager.createNode(filename, type, function (res) {
console.log(res);
});
Parameters:
renameNodeRenames a file or folder
Example:
treeManager.renameNode('some_dir/note.txt', 'note_changed.txt', function (res) {
console.log(res);
});
Parameters:
deleteNodeRemoves file or folder. Folders are removed recursivelly.
Example:
treeManager.deleteNode('some_dir/notes.txt', function (res) {
console.log(res);
});
Parameters:
moveNodeMoves node
Example:
treeManager.moveNode('some_dir/notes.txt', 'next_level/other_dir', function (res) {
res.send(res);
});
Parameters:
To perform tests run npm test in the tree-manager root directory.
FAQs
Display and manage directory tree. Connector for jstree.
We found that tree-manager 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.