Skip to content

Mchl/koa-gnu-terry-pratchett

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-gnu-terry-pratchett License: Unlicense NPMjs

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)

About

Koa.js middleware to commemorate Terry Pratchett

Resources

License

Stars

Watchers

Forks

Packages

No packages published