UNPKG

@eggjs/router

Version:

Router middleware for egg/koa. Provides RESTful resource routing.

93 lines (92 loc) 2.22 kB
{ "name": "@eggjs/router", "version": "3.0.6", "engines": { "node": ">= 18.19.0" }, "publishConfig": { "access": "public" }, "description": "Router middleware for egg/koa. Provides RESTful resource routing.", "repository": { "type": "git", "url": "https://github.com/eggjs/router.git" }, "bugs": { "url": "https://github.com/eggjs/egg/issues" }, "author": "eggjs", "keywords": [ "koa", "middleware", "router", "route" ], "dependencies": { "http-errors": "^2.0.0", "inflection": "^3.0.0", "is-type-of": "^2.1.0", "koa-compose": "^4.1.0", "methods": "^1.1.2", "path-to-regexp": "^1.9.0", "urijs": "^1.19.11", "utility": "^2.1.0" }, "devDependencies": { "@eggjs/koa": "^2.18.1", "@eggjs/tsconfig": "^1.3.3", "@types/http-errors": "^2.0.4", "@types/koa-compose": "^3.2.8", "@types/methods": "^1.1.4", "@types/mocha": "^10.0.6", "@types/supertest": "^6.0.2", "@types/urijs": "^1.19.25", "@eggjs/bin": "7", "eslint": "8", "eslint-config-egg": "13", "supertest": "^1.0.1", "tshy": "^3.0.2", "tshy-after": "^1.0.0", "typescript": "^5.4.5" }, "scripts": { "lint": "eslint src test --ext ts", "pretest": "npm run lint -- --fix && npm run prepublishOnly", "test": "egg-bin test", "test-local": "egg-bin test", "preci": "npm run lint && npm run prepublishOnly", "ci": "egg-bin cov", "postci": "npm run clean", "clean": "tsc -b --clean", "prepublishOnly": "tshy && tshy-after", "bench": "cd bench && make" }, "license": "MIT", "files": [ "dist", "src" ], "type": "module", "tshy": { "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" }