Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A simple little wrapper for Company X's APIs.
You can request things like:
yarn add rt-sdk
in the root of your project. (This will add rt-sdk
to your package.json
)// Import the rt-sdk
const rt = require('rt-sdk');
rt-sdk
methods return a Promise()options
object isn't required... its.. optional.The options
object is a way of customizing your request to the rt-sdk
. It isn't required, but setting options
can be pretty helpful if you want to organize the results before the Promise resolves. You can use it to set maximum page item limits, organize items by oldest to newest, request a specific page of the results, etc. (If you aren't using any options, don't bother passing it to the method.)
const options = {
order: 'desc',
per_page: '10',
page: 1
}
rt.series() only takes the optional options
obj.
rt.series(options)
.then(series => {
for (let serie of series) {
console.log(serie.attributes.title);
console.log(serie.type);
console.log(serie.attributes.slug);
console.log(serie.attributes.summary);
}
});
rt.seasons() takes a series slug (and options
).
rt.seasons('rt-podcast', options)
.then(seasons => {
for (let season of seasons) {
console.log(season.attributes.title);
}
});
rt.season() takes a season slug (and options
).
rt.season('always-open-2018', options)
.then(episodes => {
for (let episode of episodes) {
console.log(episode.attributes.title);
console.log(episode.attributes.description);
console.log(episode.attributes.number);
}
});
rt.episode() takes an episode slug (and options
).
rt.episode('lets-play-2012-16', options)
.then(episode => {
console.log(episode.attributes.show_title);
console.log(episode.attributes.title);
console.log(episode.attributes.description);
console.log(episode.included.images);
});
rt.products() takes a series slug (and options
). If there isn't a specific product collection associated with the series it will return generic products.
rt.products('cow-chop-gaming', options)
.then(products => {
for (let product of products) {
console.log(product.title);
console.log(JSON.stringify(product.body_html));
console.log(product.image.src);
console.log(product.url);
}
});
rt.livestream() only takes the optional options
obj.
rt.livestreams(options)
.then(episodes => {
for (let episode of episodes) {
console.log(episode.attributes.title);
console.log(episode.type);
console.log(episode.attributes.description);
console.log(episode.included.images);
}
});
rt.searchEpisodes() takes an episode query string (and options
).
rt.searchEpisodes('Mark Nutt', options)
.then(episodes => {
for (let episode of episodes) {
console.log(episode.attributes.title);
console.log(episode.type);
console.log(episode.attributes.slug);
}
});
FAQs
A simple little wrapper for Company X's APIs.
The npm package rt-sdk receives a total of 3 weekly downloads. As such, rt-sdk popularity was classified as not popular.
We found that rt-sdk 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.