koa-gnu-terry-pratchett

1.0.0 • Public • Published

koa-gnu-terry-pratchett License: Unlicense

Koa.js middleware to commemorate Terry Pratchett

What does it do

Simply adds a X-Clacks-Overhead: GNU Terry Pratchett header to response

Prerequisites

This middleware uses async/await middleware format and as such is meant to be used with Koa 2. This also means Node 7.6+.

Install

With npm:

npm i koa-gnu-terry-pratchett --save

With yarn:

yarn add koa-gnu-terry-pratchett

Usage

const Koa = require('koa')
const app = new Koa()
 
app.use(require('koa-gnu-terry-pratchett'))
 
app.use(async ctx => {
  ctx.body = 'Hello World'
})
 
app.listen(3000)

Package Sidebar

Install

npm i koa-gnu-terry-pratchett

Weekly Downloads

5

Version

1.0.0

License

Unlicense

Unpacked Size

2.61 kB

Total Files

5

Last publish

Collaborators

  • mchl