@koa/router
Version:
Router middleware for Koa.
123 lines (122 loc) • 3.72 kB
JSON
{
"name": "@koa/router",
"description": "Router middleware for Koa.",
"version": "15.7.0",
"author": "Koa.js",
"bugs": {
"url": "https://github.com/koajs/router/issues",
"email": "niftylettuce@gmail.com"
},
"contributors": [
{
"name": "@koajs"
},
{
"name": "Imed Jaberi",
"email": "imed-jaberi@outlook.com"
}
],
"peerDependencies": {
"koa": "^2.0.0 || ^3.0.0"
},
"peerDependenciesMeta": {
"koa": {
"optional": false
}
},
"dependencies": {
"debug": "^4.4.3",
"http-errors": "^2.0.1",
"koa-compose": "^4.1.0",
"path-to-regexp": "^8.4.2"
},
"devDependencies": {
"@commitlint/cli": "^21.2.0",
"@commitlint/config-conventional": "^21.2.0",
"@eslint/js": "^10.0.1",
"@koa/bodyparser": "^6.1.0",
"@types/debug": "^4.1.13",
"@types/jsonwebtoken": "^9.0.10",
"@types/koa": "^3.0.3",
"@types/node": "^26.1.0",
"@types/supertest": "^7.2.0",
"@typescript-eslint/eslint-plugin": "^8.62.1",
"@typescript-eslint/parser": "^8.62.1",
"c8": "^11.0.0",
"chalk": "^5.6.2",
"eslint": "^10.6.0",
"eslint-plugin-unicorn": "^70.0.0",
"husky": "^9.1.7",
"joi": "^18.2.3",
"jsonwebtoken": "^9.0.3",
"koa": "^3.2.1",
"lint-staged": "^17.0.8",
"np": "^11.2.1",
"prettier": "^3.9.4",
"rimraf": "^6.1.3",
"supertest": "^7.2.2",
"ts-node": "^10.9.2",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
},
"engines": {
"node": ">= 20"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js"
}
}
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"homepage": "https://github.com/koajs/router",
"keywords": [
"koa",
"middleware",
"route",
"router"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/koajs/router.git"
},
"scripts": {
"bench": "TS_NODE_PROJECT=tsconfig.bench.json node --require ts-node/register bench/run.ts",
"benchmark": "npm run bench",
"bench:all": "TS_NODE_PROJECT=tsconfig.bench.json node --require ts-node/register bench/make.ts",
"benchmark:all": "npm run bench:all",
"prepare": "husky install",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
"lint:ts": "eslint src test --fix",
"lint": "npm run lint:ts",
"test:core": "TS_NODE_PROJECT=tsconfig.ts-node.json node --require ts-node/register --test test/*.test.ts test/**/*.test.ts",
"test:recipes": "TS_NODE_PROJECT=tsconfig.recipes.json node --require ts-node/register --test recipes/**/*.test.ts",
"pretest:all": "npm run lint && npm run build",
"test:all": "TS_NODE_PROJECT=tsconfig.ts-node.json node --require ts-node/register --test test/*.test.ts test/**/*.test.ts recipes/**/*.test.ts",
"test:coverage": "c8 --all --exclude eslint.config.js --exclude tsup.config.ts --exclude src/types.ts --exclude \"bench/**\" --exclude \"dist/**\" --exclude \"recipes/**\" --exclude \"test/**\" --exclude-after-remap npm run test:all",
"ts:check": "tsc --noEmit --project tsconfig.typecheck.json",
"ts:check:test": "tsc --noEmit --project tsconfig.test.json",
"prebuild": "rimraf dist",
"build": "tsup",
"prepublishOnly": "npm run build",
"release": "np --test-script test:all"
},
"resolutions": {
"c8/yargs": "^18.0.0"
}
}