
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@types/koa-json
Advanced tools
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.
// Type definitions for koa-json v2.x
// Project: https://github.com/koajs/json
// Definitions by: Alex Friedman <https://github.com/brooklyndev>
// Definitions: https://github.com/brooklyndev/DefinitelyTyped
// TypeScript Version: 2.3
/* =================== USAGE ===================
import * as Koa from 'koa';
import * as json from 'koa-json';
const app = new Koa();
app.use(json());
=============================================== */
import * as Koa from "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
The npm package @types/koa-json receives a total of 30,885 weekly downloads. As such, @types/koa-json popularity was classified as popular.
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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

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.