
Security News
152 Chrome Live Wallpaper Extensions Hid Ad Tracking and Faked Google Search Traffic
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.
@types/koa-json
Advanced tools
TypeScript definitions for koa-json
npm install --save @types/koa-json
This package contains type definitions for koa-json (https://github.com/koajs/json).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-json.
/* =================== USAGE ===================
import * as Koa from 'koa';
import * as json from 'koa-json';
const app = new Koa();
app.use(json());
=============================================== */
import Koa = require("koa");
declare function json(opts?: {
/**
* default to pretty response [true]
*/
pretty?: boolean | undefined;
/**
* optional query-string param for pretty responses [none]
*/
param?: string | undefined;
/**
* JSON spaces [2]
*/
spaces?: number | undefined;
}): Koa.Middleware;
declare namespace json {}
export = json;
These definitions were written by Alex Friedman.
FAQs
TypeScript definitions for koa-json
We found that @types/koa-json demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.