
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
js-native-unordered-buffer-set
Advanced tools
A native Node module implementing an unsorted set of C strings.
The goal is for super-duper-fast string matching. That means inputs and outputs are always Buffers.
The implementation is a C++-standard unsorted_set. That's probably a hashtable. But it's far, far faster than a Node hashtable.
var BufferSet = require('js-native-unsorted-buffer-set');
// Input is a single Buffer: newline-separated Strings
var set = new BufferSet(new Buffer('foo\nbar\nbaz\nthe foo\nmoo', 'utf-8'));
console.log(set.contains('foo')); // true
console.log(set.contains('moo')); // false
console.log(set.findAllMatches('the foo drove over the moo', 2)); // [ 'the foo', 'foo', 'moo' ]
This method is interesting in that it can search for tokens that span multiple words (the second argument specifies the number of words), in a memory-efficient manner. The memory used is the size of the output Array. The time complexity is on the order of the size of the input times the number of tokens.
Download, npm install.
Run mocha -w in the background as you implement features. Write tests in
test and code in src.
AGPL-3.0. This project is (c) Overview Services Inc. Please contact us should you desire a more permissive license.
FAQs
C++ unordered_set, for Node Buffers
We found that js-native-unordered-buffer-set 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.