{
  "_args": [
    [
      {
        "raw": "hash-stream-validation@https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
        "scope": null,
        "escapedName": "hash-stream-validation",
        "name": "hash-stream-validation",
        "rawSpec": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
        "spec": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
        "type": "remote"
      },
      "E:\\MissionXJC\\XJC\\functions\\node_modules\\firebase-admin"
    ]
  ],
  "_from": "hash-stream-validation@>=0.2.1 <0.3.0",
  "_id": "hash-stream-validation@0.2.1",
  "_inCache": true,
  "_location": "/firebase-admin/hash-stream-validation",
  "_phantomChildren": {},
  "_requested": {
    "raw": "hash-stream-validation@https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
    "scope": null,
    "escapedName": "hash-stream-validation",
    "name": "hash-stream-validation",
    "rawSpec": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
    "spec": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
    "type": "remote"
  },
  "_requiredBy": [
    "/firebase-admin",
    "/firebase-admin/@google-cloud/storage"
  ],
  "_resolved": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
  "_shasum": "ecc9b997b218be5bb31298628bb807869b73dcd1",
  "_shrinkwrap": null,
  "_spec": "hash-stream-validation@https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
  "_where": "E:\\MissionXJC\\XJC\\functions\\node_modules\\firebase-admin",
  "author": {
    "name": "Stephen Sawchuk",
    "email": "sawchuk@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/stephenplusplus/hash-stream-validation/issues"
  },
  "dependencies": {
    "through2": "^2.0.0"
  },
  "description": "Hash a stream of data, then validate",
  "devDependencies": {
    "fast-crc32c": "^1.0.2",
    "mocha": "^2.2.5",
    "standard": "^5.1.0"
  },
  "files": [
    "crc32c.js",
    "index.js"
  ],
  "homepage": "https://github.com/stephenplusplus/hash-stream-validation#readme",
  "keywords": [
    "hash",
    "stream",
    "algorithm",
    "validation",
    "crc32c",
    "crc32",
    "md5"
  ],
  "license": "MIT",
  "main": "index.js",
  "name": "hash-stream-validation",
  "optionalDependencies": {},
  "readme": "# hash-stream-validation\n> Hash a stream of data, then validate\n\n```sh\n$ npm install --save hash-stream-validation\n```\n```js\nvar hashStreamValidation = require('hash-stream-validation');\n\nvar validateStream = hashStreamValidation();\n\nfs.createReadStream(filePath)\n  .pipe(validateStream)\n  .on('data', function() { /*... */ })\n  .on('end', function() {\n    validateStream.test('md5', /*checksum*/);\n  });\n```\n\n## Do this for faster crc32c computation\n\nIf the speeds are too slow for your use, this module will `try` to require [`fast-crc32c`](http://gitnpm.com/fast-crc32c). We chose not to make it an `optionalDependency` because npm's scary warning output confuses users into thinking their hard drive was just erased.\n\n\n```js\n$ npm install --save fast-crc32c\n```\n\n## Use Case\n\nAfter a successful upload to a Google Cloud Storage bucket, the API will respond with the hash of data it has received. During our upload, we can run the data through this module, then confirm after the upload if we both arrived at the same results. If not, we know something went wrong during the transmission.\n\n## API\n\n### validateStream = hashStreamValidation([opts])\n\n#### opts.crc32c\n- Type: `Boolean`\n- Default: `true`\n\nEnable crc32c hashing via [sse4_crc32](https://gitnpm.com/sse4_crc32).*\n\n* Note: Any issues installing this module on your system should be opened at their repository.\n\n#### opts.md5\n- Type: `Boolean`\n- Default: `true`\n\nEnable MD5 hashing.\n\n### validateStream.test(algo, sum)\n\n#### algo\n- Type: `String`\n\nThe alogrithm to test the sum against ('crc32c' or 'md5').\n\n#### sum\n- Type: `String`\n\nThe sum to validate.\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/stephenplusplus/hash-stream-validation.git"
  },
  "scripts": {
    "test": "mocha"
  },
  "standard": {
    "global": [
      "before",
      "describe",
      "it"
    ]
  },
  "version": "0.2.1"
}
