-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
90 lines (90 loc) · 4.52 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"_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"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "hash-stream-validation@https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz",
"_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": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/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"
}