Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
version-tree
Advanced tools
A data structure for maintaining a tree of versions. This can be useful when implementing fully persistent data structures using the DTSS method. Works in both node.js and browserify. All operations use amortized O(1) space and time.
var createVersionTree = require("version-tree")
//Create a new tree
var root = createVersionTree()
//Create two subversions
var a = root.fork()
var b = root.fork()
//Compare root to children
console.log(root.subversion(a), root.subversion(b), a.subversion(root), b.subversion(a))
// Prints out:
// true true false false
//Make a child version of a
var c = a.fork()
console.log(root.subversion(c), a.subvsersion(c), b.subversion(c))
//Prints out:
// true true false
npm install version-tree
var createVersionTree = require("version-tree")
var tree = createVersionTree()
Creates a new version tree with one root version
tree.fork()
Creates a new subversion of tree
.
Returns A new version which inherits from tree
tree.subversion(other)
Tests if other
is a subversion of tree
.
Returns true
if other
is an ancestor of tree
, false
otherwise
(c) 2013 Mikola Lysenko. MIT License
FAQs
Version tracking data structure
We found that version-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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.