{
  "name": "etag",
  "description": "Create simple ETags",
  "version": "1.4.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": {
    "crc": "3.0.0"
  },
  "devDependencies": {
    "benchmark": "1.0.0",
    "beautify-benchmark": "0.2.4",
    "istanbul": "0.3.2",
    "mocha": "~1.21.4",
    "seedrandom": "~2.3.6"
  },
  "files": [
    "LICENSE",
    "HISTORY.md",
    "index.js"
  ],
  "engines": {
    "node": ">= 0.6"
  },
  "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   518,895 ops/sec ±1.71% (185 runs sampled)\n* buffer - weak   x 1,917,975 ops/sec ±0.34% (195 runs sampled)\n  string - strong x   245,251 ops/sec ±0.90% (190 runs sampled)\n  string - weak   x   442,232 ops/sec ±0.21% (196 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 309,748 ops/sec ±0.99% (191 runs sampled)\n* buffer - weak   x 352,402 ops/sec ±0.20% (198 runs sampled)\n  string - strong x 159,058 ops/sec ±1.83% (191 runs sampled)\n  string - weak   x 184,052 ops/sec ±1.30% (189 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 110,157 ops/sec ±0.60% (194 runs sampled)\n* buffer - weak   x 111,333 ops/sec ±0.67% (194 runs sampled)\n  string - strong x  62,091 ops/sec ±3.92% (186 runs sampled)\n  string - weak   x  60,681 ops/sec ±3.98% (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 61,843 ops/sec ±0.44% (197 runs sampled)\n* buffer - weak   x 61,687 ops/sec ±0.52% (197 runs sampled)\n  string - strong x 41,377 ops/sec ±3.33% (189 runs sampled)\n  string - weak   x 41,368 ops/sec ±3.29% (190 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,874 ops/sec ±0.17% (198 runs sampled)\n* buffer - weak   x 6,880 ops/sec ±0.15% (198 runs sampled)\n  string - strong x 5,382 ops/sec ±2.17% (192 runs sampled)\n  string - weak   x 5,361 ops/sec ±2.23% (192 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/node/v/etag.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.4.0",
  "_from": "etag@~1.4.0"
}
