{
  "name": "etag",
  "description": "Create simple ETags",
  "version": "1.3.0",
  "contributors": [
    {
      "name": "Douglas Christopher Wilson",
      "email": "doug@somethingdoug.com"
    },
    {
      "name": "David Björklund",
      "email": "david.bjorklund@gmail.com"
    }
  ],
  "license": "MIT",
  "keywords": [
    "etag",
    "http",
    "res"
  ],
  "repository": {
    "type": "git",
    "url": "git://github.com/jshttp/etag"
  },
  "dependencies": {
    "buffer-crc32": "0.2.3"
  },
  "devDependencies": {
    "benchmark": "1.0.0",
    "beautify-benchmark": "0.2.4",
    "istanbul": "0.3.0",
    "mocha": "~1.21.4",
    "seedrandom": "~2.3.6"
  },
  "files": [
    "LICENSE",
    "HISTORY.md",
    "index.js"
  ],
  "engines": {
    "node": ">= 0.8.0"
  },
  "scripts": {
    "bench": "node benchmark/index.js",
    "test": "mocha --reporter spec --bail --check-leaks test/",
    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
  },
  "readme": "# etag\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nCreate simple ETags\n\n## Installation\n\n```sh\n$ npm install etag\n```\n\n## API\n\n```js\nvar etag = require('etag')\n```\n\n### etag(entity, [options])\n\nGenerate a strong ETag for the given entity. This should be the complete\nbody of the entity. Strings, `Buffer`s, and `fs.Stats` are accepted. By\ndefault, a strong ETag is generated except for `fs.Stats`, which will\ngenerate a weak ETag (this can be overwritten by `options.weak`).\n\n```js\nres.setHeader('ETag', etag(body))\n```\n\n#### Options\n\n`etag` accepts these properties in the options object.\n\n##### weak\n\nSpecifies if a \"strong\" or a \"weak\" ETag will be generated. The ETag can only\nreally be a strong as the given input.\n\n## Testing\n\n```sh\n$ npm test\n```\n\n## Benchmark\n\n```bash\n$ npm run-script bench\n\n> etag@1.2.0 bench nodejs-etag\n> node benchmark/index.js\n\n> node benchmark/body0-100b.js\n\n  100B body\n\n  1 test completed.\n  2 tests completed.\n  3 tests completed.\n  4 tests completed.\n\n  buffer - strong x   502,914 ops/sec ±1.18% (185 runs sampled)\n  buffer - weak   x 1,149,420 ops/sec ±0.48% (194 runs sampled)\n  string - strong x   205,007 ops/sec ±2.08% (179 runs sampled)\n  string - weak   x   356,944 ops/sec ±1.68% (192 runs sampled)\n\n> node benchmark/body1-1kb.js\n\n  1KB body\n\n  1 test completed.\n  2 tests completed.\n  3 tests completed.\n  4 tests completed.\n\n  buffer - strong x 293,298 ops/sec ±1.04% (190 runs sampled)\n  buffer - weak   x 297,940 ops/sec ±0.23% (196 runs sampled)\n  string - strong x 153,165 ops/sec ±2.02% (186 runs sampled)\n  string - weak   x 169,967 ops/sec ±1.27% (187 runs sampled)\n\n> node benchmark/body2-5kb.js\n\n  5KB body\n\n  1 test completed.\n  2 tests completed.\n  3 tests completed.\n  4 tests completed.\n\n  buffer - strong x 103,880 ops/sec ±0.62% (194 runs sampled)\n  buffer - weak   x 104,204 ops/sec ±0.73% (192 runs sampled)\n  string - strong x  58,025 ops/sec ±4.10% (185 runs sampled)\n  string - weak   x  59,181 ops/sec ±3.96% (186 runs sampled)\n\n> node benchmark/body3-10kb.js\n\n  10KB body\n\n  1 test completed.\n  2 tests completed.\n  3 tests completed.\n  4 tests completed.\n\n  buffer - strong x 57,975 ops/sec ±0.42% (195 runs sampled)\n  buffer - weak   x 57,658 ops/sec ±0.48% (194 runs sampled)\n  string - strong x 38,969 ops/sec ±3.44% (187 runs sampled)\n  string - weak   x 38,979 ops/sec ±3.38% (187 runs sampled)\n\n> node benchmark/body4-100kb.js\n\n  100KB body\n\n  1 test completed.\n  2 tests completed.\n  3 tests completed.\n  4 tests completed.\n\n  buffer - strong x 6,517 ops/sec ±0.18% (194 runs sampled)\n  buffer - weak   x 6,484 ops/sec ±0.18% (194 runs sampled)\n  string - strong x 5,115 ops/sec ±2.29% (190 runs sampled)\n  string - weak   x 5,071 ops/sec ±2.32% (190 runs sampled)\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/etag.svg?style=flat\n[npm-url]: https://npmjs.org/package/etag\n[node-version-image]: https://img.shields.io/badge/node.js-%3E%3D_0.8-brightgreen.svg?style=flat\n[node-version-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/jshttp/etag.svg?style=flat\n[travis-url]: https://travis-ci.org/jshttp/etag\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/etag.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/jshttp/etag?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/etag.svg?style=flat\n[downloads-url]: https://npmjs.org/package/etag\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/jshttp/etag/issues"
  },
  "_id": "etag@1.3.0",
  "dist": {
    "shasum": "992f63b42d663e1fbf9b52f71fb2bf354a31f1a8"
  },
  "_from": "etag@~1.3.0",
  "_resolved": "https://registry.npmjs.org/etag/-/etag-1.3.0.tgz"
}
