Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
awesome-dsa
Advanced tools
A 0 dependency library which provides classic data structures and algorithms (written in typescript) targeting browser environments.
This is currently under development and lacks full features (more details below)
Awesome DSA provides classic Data Structures & Algorithms to use in any of your projects.
It currently provides,
Structure | Description |
---|---|
SinglyLinkedList | A linked list that has nodes which only has a reference to the next node. |
DoublyLinkedList | Functionality is the same for the most part (there are two more methods in this class) as SinglyLinkedList for the end users but implemented with nodes that has references to both next and previous node. |
Stack | A more practical and useful implementation of a stack which grows as needed. |
LimitedStack | A classic implementation of Stack that is limited to the size it's given at the initialization. |
Awesome DSA is released under the MIT license.You are free to use the source code in anyway you want.Also contributions are much appreciated as I'm just doing this in my free time for fun 😉.
Visit the documentation here → | Also you editor will give great suggestions because of extensive tsdoc comments.
Using npm:
npm i awesome-dsa
Using yarn:
yarn add awesome-dsa
Note: add --save
if you are using npm < 5.0.0
In nodejs environment:
const dsa = require("awesome-dsa");
const list = new dsa.DoublyLinkedList();
//or
const { SinglyLinkedList } = require("awesome-dsa");
const list = new SinglyLinkedList();
list.insertAtEnd(10);
In ES modules (Typescript or Javascript):
import dsa from "awesome-dsa";
const q = new dsa.LinearQueue();
//or
import { SinglyLinkedList } from "awesome-dsa";
const list = new SinglyLinkedList();
Recommended to use importing single classes ({} syntax) to leverage tree shaking capabilities of bundling tools.It will reduce your bundle sizes greatly.
If you come across any bugs or have any feature requests, please open an issue or create a pull request. Visit here to open an issue.
Nethsara Sandeepa Elvitigala
Email: nethsarasandeepaelvitigala@gmail.com
Twitter | linkedin | Github | Facebook
FAQs
A 0 dependency library which provides classic data structures and algorithms (written in typescript) targeting browser environments.
We found that awesome-dsa 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 malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.