Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@sports-sdk/rotowire
Advanced tools
@sports-sdk/rotowire
This package provides clients for interacting with the RotoWire API with typed request parameters and responses.
npm i @sports-sdk/rotowire
You will need a RW API key to interact with this API
The sports and endpoints supported in this package align with use cases needed at the time of writing.
Sport | Players | News | Injuries | Lineups |
---|---|---|---|---|
EPL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
MLB | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
NBA | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
NCAAF | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | N/A |
NFL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | N/A |
NHL | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | N/A |
import {RotowireClient} from "@sports-sdk/rotowire";
import {Sport} from "@sports-sdk/core";
// client with RW API token retrieved from environment variable ROTOWIRE_TOKEN
const client = new RotowireClient(Sport.NFL);
// client with RW API token passed into constructor
const clientWithToken = new RotowireClient(Sport.NFL, "rotowire-api-token");
const news = client.getNews();
// date parameter
const newsOnDate = client.getNews({
date: "2024-07-04"
});
const injuries = client.getInjuries();
const lineups = client.getLineups();
// date parameter
const lineupsOnDate = client.getLineups({
date: "2024-07-04"
});
import {RotowireClient, MLBNewsResponse, MLBPlayer, MLBUpdates} from "@sports-sdk/rotowire";
interface MyMLBPlayer extends MLBPlayer {
SomeOtherId: string;
}
interface MyMLBUpdates extends Omit<MLBUpdates, "Player"> {
Player: MyMLBPlayer;
}
interface MyMLBNewsResponse extends Omit<MLBNewsResponse, "Updates">{
Updates: Array<MyMLBUpdates>;
}
const client = new RotowireClient(Sport.MLB);
const myNews = client.getNews<MyMLBNewsResponse>();
FAQs
A package for interacting with the RotoWire API
The npm package @sports-sdk/rotowire receives a total of 36 weekly downloads. As such, @sports-sdk/rotowire popularity was classified as not popular.
We found that @sports-sdk/rotowire demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.