GithubHelp home page GithubHelp logo

ramirezalex / koa-router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koajs/router

0.0 1.0 0.0 726 KB

Router middleware for koa.

License: MIT License

Makefile 0.41% Shell 0.52% JavaScript 98.93% HTML 0.13%

koa-router's Introduction

koa-router

NPM version NPM Downloads Node.js Version Build Status Tips Gitter Chat

Call for Maintainers

This module if fork from koa-router, the most widely used router module in koa community, because of it is lake of activity now. Thanks for the greate work of @alexmingoia and the original team.

And now we need maintainers for this project. Anyone interested can creates pull requests to fixes bugs or implements new features, we will add active contributors as collaborators.

Router middleware for koa

  • Express-style routing using app.get, app.put, app.post, etc.
  • Named URL parameters.
  • Named routes with URL generation.
  • Responds to OPTIONS requests with allowed methods.
  • Support for 405 Method Not Allowed and 501 Not Implemented.
  • Multiple route middleware.
  • Multiple routers.
  • Nestable routers.
  • ES7 async/await support.

Migrating to 7 / Koa 2

  • The API has changed to match the new promise-based middleware signature of koa 2. See the koa 2.x readme for more information.
  • Middleware is now always run in the order declared by .use() (or .get(), etc.), which matches Express 4 API.

Installation

Install using npm:

npm install @koa/router

Contributing

Please submit all issues and pull requests to the koajs/koa-router repository!

Tests

Run tests using npm test.

Support

If you have any problem or suggestion please open an issue here.

koa-router's People

Contributors

aheckmann avatar alexmingoia avatar dead-horse avatar dominicbarnes avatar fengmk2 avatar fixe avatar heavenduke avatar ifroz avatar ilkkao avatar jbielick avatar jergason avatar jeromew avatar jeynish avatar joesonw avatar kilianc avatar lagden avatar mzyy94 avatar niftylettuce avatar richardprior avatar robertherhold avatar ryankask avatar secretfader avatar tankenstein avatar tj avatar twhitbeck avatar vikramdurai avatar viliam-jobko avatar vkhv avatar wachunei avatar yiminghe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.