Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
data-structures-javascript
Advanced tools
##To The Wiki License (MIT)
The spirit behind this project is to allow the use of classic data structures within Javascript applications, and to allow the storage of data types such as objects, functions, arrays, and even other instances of any kind of data structures (like a Linked List within a Graph). To accomplish this, most of the data structures here use an __id in place of the value for reference.
This does use some basic ES6 features. You must use node 6.2.0 or higher, and some browsers may have difficulties without a transpiler.
You must use node 6.2.0 or higher
npm install data-structures-javascript
Then, in your Javascript files:
var DataStructures = require('data-structures-javascript')
var BinaryTree = DataStructures.BinaryTree
Create instances of each data structure by importing only the class you want.
For example:
var BinaryTree = require('data-structures-javascript').BinaryTree
Please checkout the Wiki to see usage of these classes.
Graph helper functions now can take a second parameter which limits the depth of the query/request (see the wiki).
run mocha
Please submit pull requests to github.com/tivrama
FAQs
Library of Data Structures in Javascript
We found that data-structures-javascript 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.