Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
chunkmatcher
Advanced tools
Fast searching for multiple patterns accross multiple data chunks.
This is useful if you have an http request that you want to search for terms and you don't want to buffer the whole response or test boundary conditions for terms between chunks.
$ npm install chunksearch
var Terms = require("chunkmatcher").Terms;
var terms = new Terms();
terms.add('test', { ignoreCase: true });
terms.add('testing');
terms.add('search');
var matcher = terms.createMatcher();
matcher.append('test sear');
matcher.append('ching t te tes te');
matcher.append('sting test');
console.log(matcher.results);
// [
// {
// start: 0,
// pattern: 'test'
// },
// {
// start: 5,
// pattern: 'search'
// },
// {
// start: 24,
// pattern: 'test'
// },
// {
// start: 24,
// pattern: 'testing'
// },
// {
// start: 32,
// pattern: 'test'
// }
// ]
var Terms = require("chunkmatcher").Terms;
var terms = new Terms();
terms.add('www.google.com');
var matcher = terms.createMatcher();
var options = {
host: 'www.google.com',
port: 80,
path: '/index.html'
};
http.get(options, function (res) {
res.on('data', function (chunk) {
matcher.append(chunk);
});
res.on('end', function () {
console.log(matcher.results);
});
});
FAQs
Fast searching for multiple patterns accross multiple data chunks.
We found that chunkmatcher 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.