Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
iterable-hash-table
Advanced tools
I wrote this for fun to learn more about Hash Tables, Iterables, Generator Functions and to learn how to upload packages to NPM. Please feel free to message me if you notice anything wrong with the code or wish to give me some tips and tricks. Thank you - Keenan Johns
To add the Hash Table to your project
npm i -s iterable-hash-table
Then, to add the Hash table to your file
ES6+
import HashTable from 'iterable-hash-table';
ES5
const HashTable = require('iterable-hash-table');
A dictionary/hash map data structure for storing key/value pairs.
Set method - O(1) Get method - O(1) Delete method - O(1)
This Hash Table is also iterable. By that I mean that the Hash Table has an iterator function which is called when the Spread Operator or a For...Of loop is called on the Hash Table object.
However, the Hash Table does not remember insertion order.
Keenan Johns aka fluxxfield Github -
FAQs
A simple Iterable Hash Table written in TypeScript
The npm package iterable-hash-table receives a total of 0 weekly downloads. As such, iterable-hash-table popularity was classified as not popular.
We found that iterable-hash-table 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.