
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
oddsjam-js-wrapper
Advanced tools
oddsjam-js-wrapper: A lightweight OddsJam API wrapper for Javascript/Typescriptoddsjam-js-wrapper?oddsjam-js-wrapper is a fast, lightweight wrapper for the OddsJam API. It strives to be as intuitive to use as possible, providing strongly typed requests and responses to ensure predictability and consistency.
Start by installing the oddsjam-js-wrapper package
npm -i oddsjam-js-wrapper
Create an instance of the OddsJamClient - depending on your environment (CommonJS example):
const OddsJamClient = require('oddsjam-js-wrapper');
const clientInstance = OddsJamClient(YOUR_API_KEY);
Then simply call whichever async function you'd like to, for example:
const futures = async () => {
try {
const data = await clientInstance.getFutures();
console.log(data);
} catch (e) {
console.log(e);
}
};
res();
This will yield you a strongly typed return value of the "futures" type based on the OddsJam API spec.
NOTE: I am purposely, as least as the package stands now, not handling errors within the package and the capture of these need to be handled by the user of the package. In doing so, we get really nice type hinting on the return values of the API as opposed to returning either the Promise result or the error itself and losing this ability.
Parameters are not required for any function call, but can be provided as desired:
The parameters that can receive multiple instances of themself, i.e. sport in this example, can be passed in as either a singular value or an array of values and they will be parsed into the GET request.
const data = await oddsJamAPI.getGames({page: 2, sport: ['baseball', 'basketball']});
OR
const data = await oddsJamAPI.getGames({page: 2, sport: 'baseball'});
Note: Sport and SportsBook parameters are case insensitive
FAQs
JS Wrapper for the OddsJam API
We found that oddsjam-js-wrapper 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.