
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
hashcoll-fast
Advanced tools
Fast hashset and hashmap implementation, written in Rust and compiled to Webassembly, based on hashbrown, a Rust port of Google's high-performance SwissTable hash map.
Fast hashset and hashmap implementation, written in Rust and compiled to Webassembly, based on hashbrown, a Rust port of Google's high-performance SwissTable hash map.
$ yarn add hashcoll-fast
HashSet<String>
const HashSet = require("hashcoll-fast").HashSet;
const set = new HashSet(4);
set.insert('foo');
set.insert('bar');
set.contains('foo'); // true
set.contains('tree'); // false
set.remove('foo');
HashMap<String, String>
const HashMap = require("hashcoll-fast").HashMap;
const map = new HashMap(4);
map.insert('foo', 'bar');
map.insert('tree', 'house');
map.contains('foo'); // true
map.contains('zig'); // false
map.remove('foo'); // 'bar'
Vec<u8>
HashSetRaw<Vec<u8>>
const HashSetRaw = require("./pkg").HashSetRaw;
const set = new HashSetRaw(4);
set.insert(Buffer.from('foo'));
set.insert(Buffer.from('bar'));
set.contains(Buffer.from('foo')); // true
set.contains(Buffer.from('tree')); // false
set.remove(Buffer.from('foo')); // Uint8Array(3) [ 102, 111, 111 ]
HashMap<String, Vec<u8>>
const HashMapRaw = require("hashcoll-fast").HashMap;
const map = new HashMapRaw(4);
map.insert('foo', Buffer.from('bar'));
map.insert('tree', Buffer.from('house'));
map.get('foo'); // // Uint8Array(3) [ 102, 111, 111 ]
map.get('trexe'); // undefined
map.contains('foo'); // true
map.contains('zig'); // false
map.remove('foo'); // Uint8Array(3) [ 102, 111, 111 ]
$ make
FAQs
Fast hashset and hashmap implementation, written in Rust and compiled to Webassembly, based on hashbrown, a Rust port of Google's high-performance SwissTable hash map.
The npm package hashcoll-fast receives a total of 0 weekly downloads. As such, hashcoll-fast popularity was classified as not popular.
We found that hashcoll-fast 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.