
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
js-singly-linked-list
Advanced tools
Javascript Implementation of Singly Linked List
npm install js-singly-linked-list
const SinglyLinkedList = require('js-singly-linked-list');
let list = new SinglyLinkedList();
list.push(1); //Pushes value to the list
list.pop(); // Delete value from the end of the list
list.shift(); // Delete value from the start of the list
list.unshift(1); // Adds value at the start of the list
list.get(1); // Retrives value at the given index
list.reverse(); // Reverses the list
list.insert(1, 20); // list.insert(index, value) -> Inserts value at the given index
list.set(1, 12); // list.set(index, value) -> Replaces or set's value at the given index
list.length; // Gives you length of the list
list.head; // Gives you head of the list
list.tail; // Gives you tail of the list
FAQs
Singly Linked List Implemented in Javascript
We found that js-singly-linked-list 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.