Skip to content

broucz/koa-async-etag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koa Async ETag

NPM version build status Test coverage David deps npm download

+/- the async version of koa-etag.

💡This middleware is designed for Koa v2.x.x and use Babel for ES5 compatibility.

🔧This middleware is a work-in-progress. Feedback / PR are welcome and encouraged. If you'd like to collaborate on this project, let me know.

Installation

$ npm install --save koa-async-etag

Usage

import Koa from 'koa';
import eTag from 'koa-async-etag';

const app = new Koa();

app.use(eTag);

app.use(async (ctx, next) => {
  await next();
  ctx.body = 'Hello World';
});

app.listen(3000);

License

MIT

About

Async ETag support for Koa responses

Resources

License

Stars

Watchers

Forks

Packages

No packages published