Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
swell-node
Advanced tools
Readme
Swell is a customizable, API-first platform for powering modern B2C/B2B shopping experiences and marketplaces. Build and connect anything using your favorite technologies, and provide admins with an easy to use dashboard.
npm install swell-node --save
const swell = require('swell-node');
swell.init('my-store', 'secret-key');
To connect to multiple stores in the same process, use swell.createClient()
:
const swell = require('swell-node');
const store1 = swell.createClient('my-store-1', 'secret-key-1');
const store2 = swell.createClient('my-store-2', 'secret-key-2');
try {
const products = await swell.get('/products', {
active: true
});
console.log(products);
} catch (err) {
console.error(err);
}
This library provides in-memory caching enabled by default, using a version protocol that means you don't have to worry about stale cache. Records that don't change too frequently, such as products, will always return from cache when possible.
To disable caching behavior, use the option cache: false
.
swell.init('my-store', 'secret-key', {
cache: false,
});
This library is intended for use with the Swell Backend API: https://developers.swell.is/backend-api
Pull requests are welcome
MIT
FAQs
Swell API library for NodeJS
The npm package swell-node receives a total of 926 weekly downloads. As such, swell-node popularity was classified as not popular.
We found that swell-node demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.