Socket
Socket
Sign inDemoInstall

koa-app-base

Package Overview
Dependencies
54
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    koa-app-base

A web server with sugar


Version published
Maintainers
1
Install size
895 kB
Created

Readme

Source

Koa App Base

NPM version Build Status Coverage Status Dependency Status devDependency Status

XO code style Greenkeeper badge

Setup base para fazer um web server utilizando Koa

Install

$ npm i -S koa-app-base

Middleware

Lista dos middleware instalados

Usage

const app = require('koa-app-base')

const options = {
  error: true
}

app(options)
  .use(ctx => {
    ctx.throw(401)
  })
  .on('error', err => {
    console.log(err.message) // Unauthorized
  })

Options

Veja as opções no próprio middleware

ParameterMiddleware
error@tadashi/koa-error
compresskoa-compress
corskcors

License

MIT © Thiago Lagden

Keywords

FAQs

Last updated on 24 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc