Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
[![npm version](https://badge.fury.io/js/rt-sdk.svg)](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 0 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.