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.
Welcome to Next Api Router 👋 <img alt="License: ISC" src="https://img.shields.io/badge/L
A tiny api router for your next.js project. It turns your api routes to express route like syntax
npm install nxr
In your pages/api
folder create a file called [...all].js
or [...all].ts
if using typescript and copy below to the file.
import router from "nxr";
router.get("/", (req, res) => {
res.send({ ok: 1 });
});
export default router.handler;
It takes advantage of next.js catch all routes and parse and bind function to the route.
👤 Shahid Kamal
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
FAQs
Welcome to Next Api Router 👋 <img alt="License: ISC" src="https://img.shields.io/badge/L
The npm package nxr receives a total of 1 weekly downloads. As such, nxr popularity was classified as not popular.
We found that nxr 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.