
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
[](https://badge.fury.io/js/rt-sdk)
The rt-sdk is 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.rt.seasons() takes a series slug (and options
).
const options = {
version: 1,
order: 'desc',
per_page: '10',
page: 1
}
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')
.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')
.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')
.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()
.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.series() only takes the optional options
obj.
rt.series()
.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.queryByEpisode() takes a episode query (and options
).
rt.queryByEpisode('Mark Nutt')
.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 1 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.