This package has been deprecated

Author message:

This package doesn't work as intended

@ramlmn/taggart

0.1.0 • Public • Published

taggart

An ETag header middleware for express like apps. It is a zero dependency middleware which generates ETags accurately.

Installation

$ npm install --save @ramlmn/taggart

Usage

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

MIT

Package Sidebar

Install

npm i @ramlmn/taggart

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

31.2 kB

Total Files

9

Last publish

Collaborators

  • lmn
  • notlmn
  • r0mflip