Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eventregistry
Advanced tools
This library contains classes that allow one to easily access the event and article information from Event Registry (http://eventregistry.org).
Most of the package is quite similar to Event Registry Python so for all who are already acquainted with the Python version there shouldn't be any problems with using this package.
Event Registry package can be installed using the NodeJS Package Manager. Type the following in the command line:
npm install eventregistry
and the package should be installed. Alternatively, you can also clone the package from the GitHub repository. After cloning it, open the command line and run:
npm build
To ensure that the package has been properly installed type the following in you JS file:
import { EventRegistry } from "eventregistry";
If this doesn't produce any kind of error messages then your installation has been successful.
As features are added to the package you will need at some point to update it. In case you have downloaded the package from GitHub simply do a git pull
. If you have installed it using the npm
command, then simply run:
npm update eventregistry
When making queries to Event Registry you will have to use an API key that you can obtain for free.
Print a list of recently added articles mentioning George Clooney
import {EventRegistry, QueryArticlesIter} from "eventregistry";
const er = new EventRegistry({apiKey: "YOUR_API_KEY"});
er.getConceptUri("George Clooney").then((conceptUri) => {
const q = new QueryArticlesIter(er, {conceptUri: conceptUri, sortBy: "date"});
q.execQuery((items) => {
for(const item of items) {
console.info(item);
}
})
});
Search for latest events related to Star Wars
import {EventRegistry, QueryEvents, RequestEventsInfo} from "eventregistry";
const er = new EventRegistry({apiKey: "YOUR_API_KEY"});
er.getConceptUri("Star Wars").then((conceptUri) => {
const q = new QueryEvents({conceptUri: conceptUri});
const requestEventsInfo = new RequestEventsInfo({sortBy: "date", count: 10});
q.addRequestedResult(requestEventsInfo);
return er.execQuery(q);
}).then((response) => {
console.info(response);
});
What are the currently trending topics
import {EventRegistry, GetTrendingConcepts} from "eventregistry";
const er = new EventRegistry({apiKey: "YOUR_API_KEY"});
const q = new GetTrendingConcepts({source: "news", count: 10});
er.execQuery(q).then((response) => {
console.info(response);
});
Event Registry is a commercial service but it allows also unsubscribed users to perform a certain number of operations. Free users are not allowed to use the obtained data for any commercial purposes (see the details on our Terms of Service page). In order to avoid these restrictions please contact us about the available plans.
FAQs
Package containing wrapper functions for Event Registry API
The npm package eventregistry receives a total of 546 weekly downloads. As such, eventregistry popularity was classified as not popular.
We found that eventregistry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.