
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
npm install sportmonks
import { SportmonksApi } from 'sportmonks';
const sportmonks = new SportmonksApi(__YOUR_API_TOKEN__);
var SportmonksApi = require('sportmonks').SportmonksApi;
var sportmonks = new SportmonksApi(__YOUR_API_TOKEN__);
var sportmonks = new SportmonksApi(__YOUR_API_TOKEN__);
sportmonks.get(endpoint,params).then( function(resp){
//resp.data will contain your data
//resp.meta will contain the meta informations
console.log(resp);
});
you can get the endpoint from the official sportmonks documentation omitting the base url and the parameters (that are set with the params field)
sportmonks.get('v2.0/countries').then( function(resp){
console.log(resp)
});
if you need to specify parameters you can set the params field as follow
sportmonks.get('v2.0/countries/{id}', { id: 13, competitions: true }).then( function(resp){
//id in the params field will replace {id} in the endpoint
//competitions: true, will add include=competitions in query string
});
page number can be added using the page param
sportmonks.get('v2.0/fixtures/between/{from}/{to}', { from: '1998-01-01', to: '2017-12-01', page: 2, lineup: true}).then( function(resp) {
//pagination info can be found in
console.log(resp.meta.pagination)
});
FAQs
Sportmonks Node.js V3 API
The npm package sportmonks receives a total of 1 weekly downloads. As such, sportmonks popularity was classified as not popular.
We found that sportmonks 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.