{"_id":"xxhash","_rev":"3334270","name":"xxhash","description":"An xxhash binding for node.js","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"time":{"modified":"2024-07-10T07:40:10.000Z","created":"2012-05-30T21:58:49.314Z","0.3.0":"2019-08-23T21:52:40.015Z","0.2.4":"2016-07-28T06:30:55.186Z","0.2.3":"2015-09-13T05:06:58.695Z","0.2.2":"2015-05-05T17:39:02.244Z","0.2.1":"2015-01-25T04:58:26.726Z","0.2.0":"2013-06-27T00:38:26.158Z","0.1.3":"2013-04-05T23:42:37.614Z","0.1.2":"2013-03-14T01:44:31.630Z","0.1.1":"2013-01-22T19:37:39.378Z","0.1.0":"2013-01-14T00:26:09.505Z","0.0.1":"2012-05-30T21:58:49.314Z"},"users":{},"author":{"name":"Brian White","email":"mscdex@mscdex.net"},"repository":{"type":"git","url":"git+https://github.com/mscdex/node-xxhash.git"},"versions":{"0.3.0":{"name":"xxhash","version":"0.3.0","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","dependencies":{"nan":"^2.13.2"},"scripts":{"install":"node-gyp rebuild","test":"node test/test.js"},"engines":{"node":">=4.0.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"type":"MIT","url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"git+https://github.com/mscdex/node-xxhash.git"},"_resolved":"","_integrity":"","_from":"https://github.com/mscdex/node-xxhash/tarball/v0.3.0","gypfile":true,"bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"},"homepage":"https://github.com/mscdex/node-xxhash#readme","_id":"xxhash@0.3.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"d20893a62c5b0f7260597dd55859b12a1e02c559","size":44217,"noattachment":false,"key":"/xxhash/-/xxhash-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.3.0.tgz"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xxhash_0.3.0_1566597159796_0.7012391190102927"},"_hasShrinkwrap":false,"publish_time":1566597160015,"_cnpm_publish_time":1566597160015,"_cnpmcore_publish_time":"2021-12-16T21:17:35.265Z","hasInstallScript":true},"0.2.4":{"name":"xxhash","version":"0.2.4","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","dependencies":{"nan":"^2.4.0"},"scripts":{"install":"node-gyp rebuild","test":"node test/test.js"},"engines":{"node":">=0.10.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"type":"MIT","url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"git+https://github.com/mscdex/node-xxhash.git"},"gypfile":true,"bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"},"homepage":"https://github.com/mscdex/node-xxhash#readme","_id":"xxhash@0.2.4","_shasum":"8b8a48162cfccc21b920fa500261187d40216c39","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.2.4","_from":"https://github.com/mscdex/node-xxhash/tarball/v0.2.4","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"8b8a48162cfccc21b920fa500261187d40216c39","size":23540,"noattachment":false,"key":"/xxhash/-/xxhash-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.2.4.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xxhash-0.2.4.tgz_1469687452653_0.207918512634933"},"directories":{},"publish_time":1469687455186,"_hasShrinkwrap":false,"_cnpm_publish_time":1469687455186,"_cnpmcore_publish_time":"2021-12-16T21:17:35.525Z","hasInstallScript":true},"0.2.3":{"name":"xxhash","version":"0.2.3","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","dependencies":{"nan":"^2.0.9"},"scripts":{"install":"node-gyp rebuild","test":"node test/test.js"},"engines":{"node":">=0.10.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"type":"MIT","url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"git+https://github.com/mscdex/node-xxhash.git"},"gypfile":true,"bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"},"homepage":"https://github.com/mscdex/node-xxhash#readme","_id":"xxhash@0.2.3","_shasum":"4fd3fbb5354384a51aa711abf85f14aafdd0a102","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.2.3","_from":"https://github.com/mscdex/node-xxhash/tarball/v0.2.3","_npmVersion":"2.14.1","_nodeVersion":"0.10.40","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"4fd3fbb5354384a51aa711abf85f14aafdd0a102","size":22726,"noattachment":false,"key":"/xxhash/-/xxhash-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.2.3.tgz"},"directories":{},"publish_time":1442120818695,"_hasShrinkwrap":false,"_cnpm_publish_time":1442120818695,"_cnpmcore_publish_time":"2021-12-16T21:17:35.753Z","hasInstallScript":true},"0.2.2":{"name":"xxhash","version":"0.2.2","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","dependencies":{"nan":"^1.8.4","readable-stream":"~1.0.0"},"scripts":{"install":"node-gyp rebuild"},"engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"type":"MIT","url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"gypfile":true,"bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"},"homepage":"https://github.com/mscdex/node-xxhash","_id":"xxhash@0.2.2","_shasum":"23430826018ae7e2a4d446d22ecd8d97661254d6","_from":"https://github.com/mscdex/node-xxhash/tarball/v0.2.2","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.2.2","_npmVersion":"1.4.28","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"23430826018ae7e2a4d446d22ecd8d97661254d6","size":10734,"noattachment":false,"key":"/xxhash/-/xxhash-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.2.2.tgz"},"directories":{},"publish_time":1430847542244,"_hasShrinkwrap":false,"_cnpm_publish_time":1430847542244,"_cnpmcore_publish_time":"2021-12-16T21:17:35.932Z","hasInstallScript":true},"0.2.1":{"name":"xxhash","version":"0.2.1","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","dependencies":{"nan":"~1.5.3","readable-stream":"~1.0.0"},"scripts":{"install":"node-gyp rebuild"},"engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"type":"MIT","url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"gypfile":true,"bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"},"homepage":"https://github.com/mscdex/node-xxhash","_id":"xxhash@0.2.1","_shasum":"2804cffb10a81958c96d7d83072821aad6e1ecd4","_from":"https://github.com/mscdex/node-xxhash/tarball/v0.2.1","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.2.1","_npmVersion":"1.4.28","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"2804cffb10a81958c96d7d83072821aad6e1ecd4","size":10732,"noattachment":false,"key":"/xxhash/-/xxhash-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.2.1.tgz"},"directories":{},"publish_time":1422161906726,"_hasShrinkwrap":false,"_cnpm_publish_time":1422161906726,"_cnpmcore_publish_time":"2021-12-16T21:17:36.128Z","hasInstallScript":true},"0.2.0":{"name":"xxhash","version":"0.2.0","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"type":"MIT","url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"readmeFilename":"README.md","bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"},"_id":"xxhash@0.2.0","dist":{"shasum":"b36d5defa296b85c8fd93009abaa0f8b6748282c","size":8837,"noattachment":false,"key":"/xxhash/-/xxhash-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.2.0.tgz"},"_from":"https://github.com/mscdex/node-xxhash/tarball/v0.2.0","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.2.0","_npmVersion":"1.2.32","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1372293506158,"_hasShrinkwrap":false,"_cnpm_publish_time":1372293506158,"_cnpmcore_publish_time":"2021-12-16T21:17:36.363Z","hasInstallScript":true},"0.1.3":{"name":"xxhash","version":"0.1.3","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"readmeFilename":"README.md","_id":"xxhash@0.1.3","dist":{"shasum":"834d64869b5762b9b7522e5f6e9a0700f1c638e3","size":7049,"noattachment":false,"key":"/xxhash/-/xxhash-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.1.3.tgz"},"_from":"https://github.com/mscdex/node-xxhash/tarball/v0.1.3","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.1.3","_npmVersion":"1.2.17","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1365205357614,"_hasShrinkwrap":false,"_cnpm_publish_time":1365205357614,"_cnpmcore_publish_time":"2021-12-16T21:17:36.555Z","hasInstallScript":true},"0.1.2":{"name":"xxhash","version":"0.1.2","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"readmeFilename":"README.md","_id":"xxhash@0.1.2","dist":{"shasum":"b10b16fd24dcaa1111f7bffe460915f3712c0b9e","size":7021,"noattachment":false,"key":"/xxhash/-/xxhash-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.1.2.tgz"},"_from":"https://github.com/mscdex/node-xxhash/tarball/v0.1.2","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.1.2","_npmVersion":"1.2.14","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1363225471630,"_hasShrinkwrap":false,"_cnpm_publish_time":1363225471630,"_cnpmcore_publish_time":"2021-12-16T21:17:36.764Z","hasInstallScript":true},"0.1.1":{"name":"xxhash","version":"0.1.1","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"readmeFilename":"README.md","_id":"xxhash@0.1.1","dist":{"shasum":"ed464e8f0d2c41a4cfc7b1b7fdafc351d4a37086","size":6971,"noattachment":false,"key":"/xxhash/-/xxhash-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.1.1.tgz"},"_from":"https://github.com/mscdex/node-xxhash/tarball/v0.1.1","_resolved":"https://github.com/mscdex/node-xxhash/tarball/v0.1.1","_npmVersion":"1.2.2","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1358883459378,"_hasShrinkwrap":false,"_cnpm_publish_time":1358883459378,"_cnpmcore_publish_time":"2021-12-16T21:17:37.077Z","hasInstallScript":true},"0.1.0":{"name":"xxhash","version":"0.1.0","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./lib/xxhash","engines":{"node":">=0.6.0"},"keywords":["hash","xxhash","fast","streaming"],"licenses":[{"url":"https://raw.github.com/mscdex/node-xxhash/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/mscdex/node-xxhash.git"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"readmeFilename":"README.md","_id":"xxhash@0.1.0","dist":{"shasum":"29782e88f9d1f1eb2343b0a08e32bb0dc96eba83","size":6966,"noattachment":false,"key":"/xxhash/-/xxhash-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.1.0.tgz"},"_npmVersion":"1.2.0","_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1358123169505,"_hasShrinkwrap":false,"_cnpm_publish_time":1358123169505,"_cnpmcore_publish_time":"2021-12-16T21:17:37.263Z","hasInstallScript":true},"0.0.1":{"name":"xxhash","version":"0.0.1","author":{"name":"Brian White","email":"mscdex@mscdex.net"},"description":"An xxhash binding for node.js","main":"./index","engines":{"node":">=0.6.0"},"keywords":["hash","fast","xxhash","strong"],"licenses":[{"type":"BSD 2-Clause","url":"http://www.opensource.org/licenses/bsd-license.php"}],"repository":{"type":"git","url":"git://github.com/mscdex/node-xxhash.git"},"_npmUser":{"name":"mscdex","email":"mscdex@mscdex.net"},"_id":"xxhash@0.0.1","scripts":{"install":"node-gyp rebuild"},"dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"032398ce83d78910e29981461305536f7abe0745","size":3434,"noattachment":false,"key":"/xxhash/-/xxhash-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhash/download/xxhash-0.0.1.tgz"},"maintainers":[{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1338415129314,"_hasShrinkwrap":false,"_cnpm_publish_time":1338415129314,"_cnpmcore_publish_time":"2021-12-16T21:17:37.501Z","hasInstallScript":true}},"readme":"\nDescription\n===========\n\nAn [xxhash](https://github.com/Cyan4973/xxHash) binding for [node.js](http://nodejs.org/).\n\n[![Build Status](https://travis-ci.org/mscdex/node-xxhash.svg?branch=master)](https://travis-ci.org/mscdex/node-xxhash)\n[![Build status](https://ci.appveyor.com/api/projects/status/y2f8pisjshf4g181)](https://ci.appveyor.com/project/mscdex/node-xxhash)\n\n\nRequirements\n============\n\n* [node.js](http://nodejs.org/) -- v4.0.0 or newer\n\n\nInstall\n============\n\n    npm install xxhash\n\n\nExamples\n========\n\n* Hash a file in one step:\n\n```javascript\nvar XXHash = require('xxhash');\nvar fs = require('fs');\n\nvar file = fs.readFileSync('somefile');\nvar result = XXHash.hash(file, 0xCAFEBABE);\n```\n\n* Hash a file in multiple steps:\n\n```javascript\nvar XXHash = require('xxhash');\nvar fs = require('fs');\n\nvar hasher = new XXHash(0xCAFEBABE);\n\nfs.createReadStream('somefile')\n  .on('data', function(data) {\n    hasher.update(data);\n  })\n  .on('end', function() {\n    console.log('Hash value = ' + hasher.digest());\n  });\n```\n\n* Hash a file with a hash stream:\n\n```javascript\nvar HashStream = require('xxhash').Stream;\nvar fs = require('fs');\n\nvar hasher = new HashStream(0xCAFEBABE);\n\nfs.createReadStream('somefile')\n  .pipe(hasher)\n  .on('finish', function() {\n    console.log('Hash value = ' + hasher.read());\n  });\n```\n\n\nAPI\n===\n\nXXHash Static Methods\n---------------------\n\n* **hash**(< _Buffer_ >data, < _mixed_ >seed[, < _mixed_ >encbuf]) - _mixed_ - Performs a single/one-time 32-bit hash of `data` with the given `seed`. `seed` can be an unsigned integer or a Buffer containing (1 <= n <= 4) bytes to use for the seed. The resulting hash is returned. The format of the hash depends on the value of `encbuf`. If `encbuf` is a string and one of: `buffer`, `hex`, `base64`, or `binary`, then the hash value will be encoded in the appropriate format. If `encbuf` is a _Buffer_ of at least 4 bytes, then the hash value will be written to `encbuf` and `encbuf` will be returned. Otherwise, if `encbuf` is not supplied, then the hash will be an unsigned integer.\n\n* **hash64**(< _Buffer_ >data, < _mixed_ >seed[, < _mixed_ >encbuf]) - _mixed_ - Performs a single/one-time 64-bit hash of `data` with the given `seed`. `seed` can be an unsigned integer or a Buffer containing (1 <= n <= 8) bytes to use for the seed. The resulting hash is returned. The format of the hash depends on the value of `encbuf`. If `encbuf` is a string and one of: `buffer`, `hex`, `base64`, or `binary`, then the hash value will be encoded in the appropriate format. If `encbuf` is a _Buffer_ of at least 8 bytes, then the hash value will be written to `encbuf` and `encbuf` will be returned. The default value for `encbuf` is `'buffer'`.\n\n\nXXHash Static Properties\n------------------------\n\n* **Stream(< _mixed_ >seed[, < _integer_ >bits][, < _mixed_ >encbuf])** - _DuplexStream_ - A stream constructor that takes in the `seed` to use. Write data to the stream and when the stream ends, a `bits`-bit (32 or 64) hash value (format determined by `encbuf`) is available on the readable side. The values for `seed` and `encbuf` are described above in `hash()`.\n\n* **XXHash64(< _mixed_ >seed)** - This is the 64-bit Hash constructor. It is only needed if you want to use the old streaming interface (`update()`/`digest()`) instead of the streams2 interface described above.\n\n\nXXHash Methods\n--------------\n\n* **(constructor)**(< _mixed_ >seed) - Creates and returns a new 32-bit Hash instance with the given `seed`. The values for `seed` are described above in `hash()`.\n\n* **update**(< _Buffer_ >data) - _(void)_ - Update the hash using `data`.\n\n* **digest**([< _mixed_ >encbuf])  - _mixed_ - The values for `encbuf` and the resulting hash value format is described in `hash()`.\n","_attachments":{},"homepage":"https://github.com/mscdex/node-xxhash#readme","bugs":{"url":"https://github.com/mscdex/node-xxhash/issues"}}