Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
amalgamatic
Advanced tools
Search all the things! Pluggable metasearch. Uses APIs when it can, scrapes otherwise, write your own plugins for things that don't already have them.
Amalgamatic is a pluggable metasearch tool. It let's you choose a series of sources to search and then search them.
Search all the things!
// Load amalgamatic
var amalgamatic = require('amalgamatic');
// Load some plugins to search SFX and PubMed.
var sfx = require('amalgamatic-sfx');
var pubmed = require('amalgamatic-pubmed');
// Add the plugins to amalgamatic.
amalgamatic.add('sfx', sfx);
amalgamatic.add('pubmed', pubmed);
// Do a search!
amalgamatic.search({searchTerm: 'medicine'}, function (results) {
console.dir(results);
});
Add (register) a plugin for a collection.
name
: A string that will be used to identify the collection.plugin
: A plugin object.Execute a search query.
query
: An object optionally containing the following properties
searchTerm
: String containing the search term(s). Default is empty string which returns no results.collections
: Array of strings representing the plugins you wish to search. Default is to use all registered plugins.maxResults
: Integer representing the maximum number of results to return from each plugin. Use 0 or a negative number (or omit the property altogether) to return the default number of results from each plugin.pluginCallback
: A function to execute after each plugin returns a result. It is called with two parameters.
* error
: An Error object or null
if no error occurred.
results
: An object containing the results from the plugin.callback
: A function to execute after all plugins have returned results. It is called with two parameters.
* error
: An Error object or null
if no error occurred.
results
: An object containing all the results from all the plugins.FAQs
Search all the things! Pluggable metasearch. Uses APIs when it can, scrapes otherwise, write your own plugins for things that don't already have them.
The npm package amalgamatic receives a total of 25 weekly downloads. As such, amalgamatic popularity was classified as not popular.
We found that amalgamatic 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.