Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
node-shop.com
Advanced tools
Node.js Module for Shop.com API
#Install
npm install --save node-shop.com
#Usage
//init your Shop instace
var Shop = require('node-shop.com').initShop({
apikey: 'YOUR_API_KEY'
});
//search product by ID
Shop.products('874694776', {allperms: false})
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.error(err);
});
//search product by keywords
Shop.search("socks", {page: 1, count:1})
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.error(err);
});
//get afflicate program information on products categories
Shop.apnCategory({publisherID: 'TEST', locale: 'en_US'})
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.error(err);
});
//get afflicate program information on products
Shop.apnProduct({publisherID: 'TEST', locale: 'en_US', perPage: '15'})
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.error(err);
});
//get afflicate program information on products categories by product ID
Shop.apnProductById('874694776', {publisherID: 'TEST', locale: 'en_US'})
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.error(err);
});
//get afflicate program information on tax and shipping
Shop.apnTaxShipping({prodIds: '834207132', quantity: '1', state: 'MA', zip:'02148', city:'Malden', country:'United States', street:'999 Maple St'})
.then(function (data) {
console.log(data);
})
.catch(function (err) {
console.error(err);
});
#Reference
#License MIT
FAQs
Node.js Module for Shop.com API
The npm package node-shop.com receives a total of 1 weekly downloads. As such, node-shop.com popularity was classified as not popular.
We found that node-shop.com 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.