
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
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
The npm package data-structures-javascript receives a total of 22 weekly downloads. As such, data-structures-javascript popularity was classified as not popular.
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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.