@koa/router
Version:
Router middleware for koa. Maintained by Forward Email and Lad.
121 lines (120 loc) • 3.53 kB
JSON
{
"name": "@koa/router",
"description": "Router middleware for koa. Maintained by Forward Email and Lad.",
"version": "15.1.1",
"author": "Alex Mingoia <talk@alexmingoia.com>",
"bugs": {
"url": "https://github.com/koajs/router/issues",
"email": "niftylettuce@gmail.com"
},
"contributors": [
{
"name": "Alex Mingoia",
"email": "talk@alexmingoia.com"
},
{
"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.3.0"
},
"devDependencies": {
"@commitlint/cli": "^20.2.0",
"@commitlint/config-conventional": "^20.2.0",
"@koa/bodyparser": "^6.0.0",
"@types/debug": "^4.1.12",
"@types/jsonwebtoken": "^9.0.7",
"@types/koa": "^3.0.1",
"@types/node": "^25.0.3",
"@types/supertest": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^8.50.0",
"@typescript-eslint/parser": "^8.50.0",
"c8": "^10.1.3",
"chalk": "^5.4.1",
"eslint": "^9.39.2",
"eslint-plugin-unicorn": "^62.0.0",
"husky": "^9.1.7",
"joi": "^18.0.2",
"jsonwebtoken": "^9.0.3",
"koa": "^3.1.1",
"lint-staged": "^16.2.7",
"prettier": "^3.7.4",
"rimraf": "^6.1.2",
"supertest": "^7.1.4",
"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 --ext .ts,.tsx --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",
"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 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"
}
}