koa-body
Version:
A Koa body parser middleware. Supports multipart, urlencoded and JSON request bodies.
85 lines • 2.21 kB
JSON
{
"name": "koa-body",
"version": "7.0.1",
"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.4.6",
"@types/koa": "^3.0.0",
"co-body": "^6.2.0",
"formidable": "^3.5.4",
"type-fest": "^5.3.1",
"zod": "^4.1.12"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@biomejs/biome": "^2.2.7",
"@changesets/cli": "^2.29.7",
"@changesets/changelog-github": "^0.5.1",
"@koa/router": "^14.0.0",
"@tsconfig/node22": "^22.0.2",
"@tsconfig/strictest": "^2.0.6",
"@types/koa__router": "^12.0.4",
"@types/supertest": "^6.0.3",
"koa": "^3.0.3",
"supertest": "7.1.4",
"tshy": "^3.0.3",
"tshy-after": "^1.4.1",
"tsx": "^4.20.6",
"typescript": "^5.9.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"
}
}