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.
@types/koa-static
Advanced tools
TypeScript definitions for koa-static
npm install --save @types/koa-static
This package contains type definitions for koa-static (https://github.com/koajs/static).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-static.
/* =================== USAGE ===================
import serve = require("koa-static");
var Koa = require('koa');
var app = new Koa();
app.use(serve("."));
=============================================== */
import { Middleware } from "koa";
import { SendOptions } from "koa-send";
declare function serve(root: string, opts?: serve.Options): Middleware<{}>;
declare namespace serve {
interface Options extends SendOptions {
/** If true, serves after return next(), allowing any downstream middleware to respond first. */
defer?: boolean | undefined;
}
}
export = serve;
These definitions were written by Jerry Chin, and Tomek Łaziuk.
FAQs
TypeScript definitions for koa-static
The npm package @types/koa-static receives a total of 121,147 weekly downloads. As such, @types/koa-static popularity was classified as popular.
We found that @types/koa-static 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.