Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cricket-api-node
Advanced tools
Build a Live Cricket Score JSON API by using this Node Module.
Build a Live Cricket Score JSON API by using this Node Module.
NPM
npm install cricket-api-node
OR
yarn add cricket-api-node
const score = require('cricket-api-node');
score.match('<Live Match URL from cricbuzz>');
This is My Experimenting npm
Module for Build an API using Express.js
const express = require('express');
const cors = require('cors');
const score = require('cricket-api-node');
const app = express();
const port = process.env.PORT || 4000;
app.use(cors());
app.listen(port, function () {
console.log('listening on port ' + port);
});
function customHeaders(req, res, next) {
app.disable('x-powered-by');
res.setHeader('X-Powered-By', 'Live Score API');
next();
}
app.use(customHeaders);
app.get('/', async (req, res) => {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers,Content-Type,Access-Control-Allow-Methods, Authorization, X-Requested-With');
res.header('Access-Control-Allow-Methods', 'GET');
res.header('X-Frame-Options', 'DENY');
res.header('X-XSS-Protection', '1; mode=block');
res.header('X-Content-Type-Options', 'nosniff');
res.header('Strict-Transport-Security', 'max-age=63072000');
res.header('Content-Type', 'application/json');
const LIVE_MATCH = "<URL OF CRICKET API>";
score.match(LIVE_MATCH).then(live => {
res.send(live);
});
});
All Credits Goes to https://www.cricbuzz.com/
# | Project Name | Description |
---|---|---|
01 | Live Cricket Score Static Site | A Simple Scrape Method - Fetch the Live Cricket Score from espncricinfo.com using Nodejs and Cheerio.js |
02 | IPL Special | Cricket API for Get the Live IPL Cricket Score |
03 | Live IPL Score Update on Telegram | Get Live IPL cricket Score on Telegram |
04 | Live Cricket Score Wordpress Plugin (JS Version) | Get Live Cricket Score on Wordpress site call API using Javascript Fetch API |
05 | Live Cricket Score Wordpress Plugin (Wp Remote URL) | Get Live Cricket Score on Wordpress site call API using Wordpress HTTP Remote URL |
06 | PWA Web App | Real-time Live Cricket Score Web app + PWA Built using Nuxt.js |
MIT
FAQs
Build a Live Cricket Score JSON API by using this Node Module.
We found that cricket-api-node 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.