Koa Utils
Slim Boilerplate for TypeScript based projects.
Installation
# npm npm install --save koa-utils # yarn yarn add koa-utils
Usage
const Koa = ;const handleErrors = ; // Create server with error handlerconst server = ; server;
handleErrors
Generic error handler for rest apis. Creates a response with the following structure:
ErrorResponse
License
MIT
, see LICENSE.