Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR provide a version of this module to use with Koa V2.
I've implemented in native
promises
as discussed on #52Because Koa v2 is still in alpha due the lack of native support for
async/await
functions in NodeJS, this PR should be merged in this repo in a new branch, rather than master, as other koa-* repos does (e.g. koa-path-match); I've sent PR to maste to show the changes, let me know if you prefer to send this PR on a new branch when you create it.To release this version, Koa is using
@next
named version innpm
, so people can install koa v2 middlewares just doingnpm install koa-xxxx@next
On the other hand, I also added
eslint
and a standard configuration; I think that repos should have one and took an standard one than the one that I've usually used.