
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.
tcc-linkedlist
Advanced tools
Fast and simple linked list program for node.
let {SingleLinkedList, DoubleLinkedList} = require('tcc-linkedlist')
let sll = new SingleLinkedList()
let dll = new DoubleLinkedList()
// objects to add to linked list
let collinObject = {
name: 'Collin',
age: 21
}
let timObject = {
name: 'Timothy',
age: 21
}
let daveObject = {
name: 'David',
age: 24
}
// a static id is generated for each created node 0, .. n
sll.createNode(collinObject)
sll.createNode(timObject)
sll.createNode(daveObject)
dll.createNode(collinObject)
dll.createNode(timObject)
dll.createNode(daveObject)
// delete timObject in linked list
sll.deleteNodeById(1)
dll.deleteNodeById(1)
// print the linked list
sll.printLinkedList()
dll.printLinkedList()
let singleNode = sll.getNodeById(2) // returns daveObject as SingleModel object
let singleObj = sll.getObjectById(2) // returns daveObject
let doubleNode = dll.getNodeById(2) // returns daveObject as DoubleModel object
let doubleObj = dll.getObjectById(2) // returns daveObject
let singlePrevNode = sll.getPreviousNodeById(2) // returns collinObject as SingleModel
let doublePrevNode = dll.getPreviousNodeById(2) // returns collinObject as DoubleModel
let singleCollinObject = sll.removeNodeProperties(singlePrevNode) // collinObject is equal to singleCollinObject
let doubleCollinObject = dll.removeNodeProperties(doublePrevNode) // collinObject is equal to doubleCollinObject
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js.
Installation is done using the
npm install
command:
$ npm install tcc-linkedlist
FAQs
Liked list in javascript
The npm package tcc-linkedlist receives a total of 0 weekly downloads. As such, tcc-linkedlist popularity was classified as not popular.
We found that tcc-linkedlist 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.