koa-etag
ETag support for koa
Last updated 4 years ago by niftylettuce .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install koa-etag 
SYNC missed versions from official npm registry.

koa-etag

NPM version Build status Test coverage Dependency Status License Downloads

Etag support for Koa responses using etag.

Installation

# npm
$ npm install koa-etag
# yarn
$ yarn add koa-etag

Example

const conditional = require('koa-conditional-get');
const etag = require('koa-etag');
const Koa = require('koa');
const app = new Koa();

// etag works together with conditional-get
app.use(conditional());
app.use(etag());

app.use(function (ctx) {
  ctx.body = 'Hello World';
});

app.listen(3000);

console.log('listening on port 3000');

License

MIT

Current Tags

  • 4.0.0                                ...           latest (4 years ago)
  • 3.0.0                                ...           next (9 years ago)
  • 2.1.2                                ...           v2 (7 years ago)

15 Versions

  • 4.0.0                                ...           4 years ago
  • 2.1.2                                ...           7 years ago
  • 2.1.1                                ...           9 years ago
  • 3.0.0                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           10 years ago
  • 1.3.1                                ...           10 years ago
  • 1.3.0                                ...           10 years ago
  • 1.2.5                                ...           10 years ago
  • 1.2.4                                ...           10 years ago
  • 1.2.3                                ...           11 years ago
  • 1.2.2                                ...           11 years ago
  • 1.2.1                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (12)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |