{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","repository":{"type":"git","url":"git+https://github.com/alexmingoia/koa-router.git"},"main":"lib/router.js","files":["lib"],"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"version":"5.4.1","keywords":["koa","middleware","router","route"],"dependencies":{"debug":"^2.2.0","http-errors":"^1.3.1","methods":"^1.0.1","path-to-regexp":"^1.1.1"},"devDependencies":{"gulp":"^3.8.11","gulp-mocha":"^2.0.0","jsdoc-to-markdown":"^1.1.1","expect.js":"^0.3.1","koa":"^0.20.0","mocha":"^2.0.1","should":"^6.0.3","supertest":"^1.0.1"},"scripts":{"test":"[ \"${TRAVIS_NODE_VERSION}\" = \"0.12\" ] && NODE_ENV=test node --harmony-generators node_modules/gulp/bin/gulp.js test || NODE_ENV=test node node_modules/gulp/bin/gulp.js test","docs":"NODE_ENV=test node node_modules/gulp/bin/gulp.js docs"},"engines":{"node":"> 0.12"},"license":"MIT","gitHead":"7984d434ea7456e6bacfc727b2da3c70622b19e8","bugs":{"url":"https://github.com/alexmingoia/koa-router/issues"},"homepage":"https://github.com/alexmingoia/koa-router#readme","_id":"koa-router@5.4.1","_shasum":"72a3b35b38925d85c27ccf9e857c909c5b25e923","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.9.1","_npmUser":{"name":"amingoia","email":"talk@alexmingoia.com"},"dist":{"shasum":"72a3b35b38925d85c27ccf9e857c909c5b25e923","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-5.4.1.tgz","integrity":"sha512-k9yahZH0T0rwAcaju9W1nde7thZ352R9CVZUP3/SrQ5slaXN9sWOvcFMB1dksat80cQEhS+6AUZdWSeCNeklJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEF8mzoNOL74Nb2Gd5Y5UMcQpP0dm+deGqIUgdn1kzICAiAYC5cM1BoLQli7fAbDqQJv0qJ190HwxAUSpKahj9THBA=="}],"size":11060,"noattachment":false,"key":"/koa-router/-/koa-router-5.4.1.tgz"},"maintainers":[{"name":"amingoia","email":"talk@alexmingoia.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-router-5.4.1.tgz_1490908713981_0.7025460856966674"},"directories":{},"deprecated":"Please use @koa/router instead, starting from v9! ","readme":"# [@koa/router](https://github.com/koajs/router)\n\n> Router middleware for [Koa](https://github.com/koajs/koa). Maintained by [Forward Email][forward-email] and [Lad][].\n\n[![build status](https://github.com/koajs/router/actions/workflows/ci.yml/badge.svg)](https://github.com/koajs/router/actions/workflows/ci.yml)\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/koajs/router.svg)](LICENSE)\n\n\n## Table of Contents\n\n* [Features](#features)\n* [Migrating to 7 / Koa 2](#migrating-to-7--koa-2)\n* [Install](#install)\n* [Typescript Support](#typescript-support)\n* [API Reference](#api-reference)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Features\n\n* Express-style routing (`app.get`, `app.put`, `app.post`, etc.)\n* Named URL parameters\n* Named routes with URL generation\n* Match routes with specific host\n* Responds to `OPTIONS` requests with allowed methods\n* Support for `405 Method Not Allowed` and `501 Not Implemented`\n* Multiple route middleware\n* Multiple and nestable routers\n* `async/await` support\n\n\n## Migrating to 7 / Koa 2\n\n* The API has changed to match the new promise-based middleware\n  signature of koa 2. See the [koa 2.x readme](https://github.com/koajs/koa/tree/2.0.0-alpha.3) for more\n  information.\n* Middleware is now always run in the order declared by `.use()` (or `.get()`,\n  etc.), which matches Express 4 API.\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install @koa/router\n```\n\n\n## Typescript Support\n\n```sh\nnpm install @types/koa__router\n```\n\n\n## API Reference\n\nSee [API Reference](./API.md) for more documentation.\n\n\n## Contributors\n\n| Name             |\n| ---------------- |\n| **Alex Mingoia** |\n| **@koajs**       |\n\n\n## License\n\n[MIT](LICENSE) © Alex Mingoia\n\n\n##\n\n[forward-email]: https://forwardemail.net\n\n[lad]: https://lad.js.org\n\n[npm]: https//www.npmjs.com\n","publish_time":1490908714266,"_cnpm_publish_time":1490908714266,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}