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
Create simple ETags
Installation
$ npm install etagAPI
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