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.
Javascript client for ItemsAPI 2.0
npm install itemsapi
There are many easy ways to run ItemsAPI 2.0 server.
The simplest one is by using Docker:
docker run --privileged -it -p 3000:3000 itemsapi/itemsapi:latest
Here is a quickstart for a search request
const ItemsAPI = require('itemsapi')
(async () => {
const client = new ItemsAPI({
host: 'http://127.0.0.1:3000'
})
const index = client.getIndex();
let response = await index.updateConfig(config);
response = await index.addItems(items);
response = await index.search({
per_page: 3,
filters: {
tags: ['epic']
},
facets_fields: ['tags']
});
console.log(response);
})();
await index.search(input)
await index.facet(input)
client.getIndex()
await index.addItems(items)
await index.getItem(id)
await index.partialUpdateItem(id, data)
await index.updateItem(id, data)
await index.deleteItem(id)
await index.getConfig()
await index.updateConfig(config)
FAQs
Javascript client for ItemsAPI
We found that itemsapi 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
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.