0.1.0 • Published 8 years ago
@ramlmn/taggart v0.1.0
taggart
An ETag header middleware for express like apps. It is a zero dependency
middleware which generates ETags accurately.
Installation
$ npm install --save @ramlmn/taggartUsage
const express = require('express');
const taggart = require('@ramlmn/taggart');
const app = express();
app.use(taggart);
app.use(...);
...Working
taggart simply overrides the write, end and send methods of the res
(ServerResponse object) and tries to gather around the response content
being sent to the client, at the end, taggart adds the ETag header to the
response if it is't buffered or tansfered in chunks.
License
0.1.0
8 years ago