
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
webcheck-cheerio-multi-mapper
Advanced tools
Webcheck plugin map data with cheerio multiple times on same resource
npm install --save webcheck-cheerio-multi-mapping
/*jslint node:true*/
'use strict';
var MappingPlugin = require('webcheck-cheerio-multi-mapper');
var Webcheck = require('webcheck');
var PluginGroup = require('webcheck-plugin-group');
var CheerioPlugin = require('webcheck-cheerio');
var webcheck = new Webcheck();
var plugin = new MappingPlugin({
mappings: {
a: '.a',
nested: {
b: 'div.b',
c: '.c'
}
},
each: 'body .eachClass'
});
var group = new PluginGroup({
plugins: [new CheerioPlugin(), plugin]
});
webcheck.addPlugin(group);
group.enable();
mappings: Object of mappings.each: Query that matches each mapping root.filterContentType: Follow only in matching content-type.filterStatusCode: Follow only in matching HTTP status code (defaults to 2xx status codes).filterUrl: Follow only in matching url.onError: Function that get executed on errors.onData: Function that get executed when data was fetched.Filters are regular expressions, but the plugin uses only the .test(str) method to proof. You are able to write
your own and much complexer functions by writing the logic in the test method of an object like this:
opts = {
filterSomething: {
test: function (val) {
return false || true;
}
}
}
wbcheck.crawl({
url: 'http://...',
parameters: {
forceValue: {
a: 'This is now the value for a',
nested: {
b: 'This is now the value for b'
}
}
}
}, function (err) {
// go on here...
})
onData gives you the the result of the mapped data (named as data) and the result of the crawl (named as result).
FAQs
A webcheck plugin to map multiple times on one resource
We found that webcheck-cheerio-multi-mapper 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
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.