JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47810483
  • Score
    100M100P100Q240849F
  • License MIT

Create simple ETags

Package Exports

  • etag

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (etag) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

etag

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Create simple ETags

Installation

$ npm install etag

API

var etag = require('etag')

etag(str)

Generate a strong ETag for the given string. This string should be the complete body.

res.setHeader('ETag', etag(body))

etag(buf)

Generate a strong ETag for the given Buffer. This buffer should be the complete body.

res.setHeader('ETag', etag(buf))

Testing

$ npm test

License

MIT