koa-body
Version:
A Koa body parser middleware. Supports multipart, urlencoded and JSON request bodies.
86 lines • 2.24 kB
JSON
{
"name": "koa-body",
"version": "8.0.0",
"description": "A Koa body parser middleware. Supports multipart, urlencoded and JSON request bodies.",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git://github.com/koajs/koa-body.git"
},
"keywords": [
"koa",
"urlencoded",
"multipart",
"json",
"body",
"parser",
"form"
],
"dependencies": {
"@types/co-body": "^6.1.3",
"@types/formidable": "^3.5.1",
"@types/koa": "^3.0.2",
"co-body": "^6.2.0",
"formidable": "^3.5.4",
"type-fest": "^5.6.0",
"zod": "^4.4.3"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@biomejs/biome": "^2.4.15",
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@koa/router": "^15.5.0",
"@tsconfig/node22": "^22.0.5",
"@tsconfig/strictest": "^2.0.8",
"@types/koa__router": "^12.0.5",
"@types/node": "25.7.0",
"@types/supertest": "^7.2.0",
"koa": "^3.2.0",
"supertest": "7.2.2",
"tshy": "^4.1.2",
"tshy-after": "^1.4.1",
"tsx": "^4.21.0",
"typescript": "^6.0.3"
},
"license": "MIT",
"type": "module",
"tshy": {
"exclude": [
"src/**/*.test.ts"
],
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"module": "./dist/esm/index.js",
"scripts": {
"release": "pnpm build && pnpm changeset publish",
"build": "pnpm clean && pnpm lint && pnpm test && tshy && tshy-after && attw --pack",
"fix": "biome check --fix",
"clean": "rm -rf dist",
"lint": "tsc --noEmit && biome check",
"test": "node --import tsx --test **/*.test.ts",
"examples-multer": "tsx examples/multer.ts",
"examples-koa-router": "tsx examples/koa-router.ts",
"examples-multipart": "tsx examples/multipart.ts"
}
}