{"_id":"xxhashjs","_rev":"306496","name":"xxhashjs","description":"xxHash in Javascript","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"time":{"modified":"2021-06-03T19:33:13.000Z","created":"2013-12-31T15:13:15.244Z","0.2.2":"2018-01-18T06:57:49.467Z","0.2.1":"2016-06-27T11:14:17.535Z","0.2.0":"2016-06-27T08:07:30.942Z","0.1.1":"2015-03-31T18:15:11.203Z","0.1.0":"2015-03-12T20:43:06.507Z","0.0.5":"2014-05-20T18:09:52.272Z","0.0.4":"2014-04-25T18:52:18.896Z","0.0.3":"2014-03-21T09:42:10.248Z","0.0.2":"2014-01-19T16:26:21.549Z","0.0.1":"2014-01-01T20:56:50.286Z","0.0.0":"2013-12-31T15:13:15.244Z"},"users":{"estliberitas":true,"kerry95":true,"ceejbot":true,"kenlimmj":true,"davidrapin":true,"shanewholloway":true},"author":{"name":"Pierre Curto"},"repository":{"type":"git","url":"git+https://github.com/pierrec/js-xxhash.git"},"versions":{"0.2.2":{"name":"xxhashjs","version":"0.2.2","description":"xxHash in Javascript","main":"./lib/index.js","scripts":{"test":"mocha","prepublish":"webpack && uglifyjs -m -c -o build/xxhash.min.js build/xxhash.js"},"repository":{"type":"git","url":"git+https://github.com/pierrec/js-xxhash.git"},"keywords":["xxhash","xxh"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"^0.2.2"},"devDependencies":{"benchmark":"*","uglifyjs":"^2.4.11","webpack":"^3.10.0"},"gitHead":"6c5c2d847035f7a8f4ac838d61074c3ab5c0e0e9","_id":"xxhashjs@0.2.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"dist":{"shasum":"8a6251567621a1c46a5ae204da0249c7f8caa9d8","size":39926,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.2.2.tgz"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xxhashjs-0.2.2.tgz_1516258668473_0.6614369279704988"},"directories":{},"publish_time":1516258669467,"_hasShrinkwrap":false,"_cnpm_publish_time":1516258669467},"0.2.1":{"name":"xxhashjs","version":"0.2.1","description":"xxHash in Javascript","main":"./lib/index.js","scripts":{"test":"mocha","prepublish":"webpack && uglifyjs -m -c -o build/xxhash.min.js build/xxhash.js"},"repository":{"type":"git","url":"git+https://github.com/pierrec/js-xxhash.git"},"keywords":["xxhash","xxh"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"webpack":"*","uglifyjs":"*","benchmark":"*"},"gitHead":"cbc8e63d801307a3fff3df5a9984b75ddc1ecd57","_id":"xxhashjs@0.2.1","_shasum":"9bbe9be896142976dfa34c061b2d068c43d30de0","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"dist":{"shasum":"9bbe9be896142976dfa34c061b2d068c43d30de0","size":299715,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.2.1.tgz"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xxhashjs-0.2.1.tgz_1467026055007_0.3534833516459912"},"directories":{},"publish_time":1467026057535,"_cnpm_publish_time":1467026057535,"_hasShrinkwrap":false},"0.2.0":{"name":"xxhashjs","version":"0.2.0","description":"xxHash in Javascript","main":"./lib/index.js","scripts":{"test":"mocha","prepublish":"webpack && uglifyjs -m -c -o build/xxhash.min.js build/xxhash.js"},"repository":{"type":"git","url":"git+https://github.com/pierrec/js-xxhash.git"},"keywords":["xxhash","xxh"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"webpack":"*","uglifyjs":"*","benchmark":"*"},"gitHead":"e79f2b327eb86e6c66b0e695b3b52064eea903cb","_id":"xxhashjs@0.2.0","_shasum":"ff1c31b76bf83d512c42c9ff54e5e594747380c5","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"dist":{"shasum":"ff1c31b76bf83d512c42c9ff54e5e594747380c5","size":299692,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.2.0.tgz"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xxhashjs-0.2.0.tgz_1467014848533_0.8436844905372709"},"directories":{},"publish_time":1467014850942,"_cnpm_publish_time":1467014850942,"_hasShrinkwrap":false},"0.1.1":{"name":"xxhashjs","version":"0.1.1","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha","prepublish":"lmd build xxhash; lmd build xxhash.min"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"lmd":"1.11.x","benchmark":"*"},"gitHead":"5b8f0afdec3cf53617520977b2828c1e321baf02","_id":"xxhashjs@0.1.1","_shasum":"a03ce1be3a2946a1d31fece0c18972f8bd2e464f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"dist":{"shasum":"a03ce1be3a2946a1d31fece0c18972f8bd2e464f","size":272515,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.1.1.tgz"},"directories":{},"publish_time":1427825711203,"_cnpm_publish_time":1427825711203,"_hasShrinkwrap":false},"0.1.0":{"name":"xxhashjs","version":"0.1.0","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha","prepublish":"lmd build xxhash; lmd build xxhash.min"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"lmd":"1.11.x","benchmark":"*"},"gitHead":"4d3c313753130bb88ab8faaeb496309b1e4b7384","_id":"xxhashjs@0.1.0","_shasum":"865bd90900f1d45b908e877a805ffd631518f1d6","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"dist":{"shasum":"865bd90900f1d45b908e877a805ffd631518f1d6","size":272430,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.1.0.tgz"},"publish_time":1426192986507,"_cnpm_publish_time":1426192986507,"_hasShrinkwrap":false},"0.0.5":{"name":"xxhashjs","version":"0.0.5","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha","prepublish":"lmd build xxhash; lmd build xxhash.min"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"lmd":"1.11.x","benchmark":"*"},"_id":"xxhashjs@0.0.5","_shasum":"5ea9e85728e00b8276655827498110b72a14b332","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"dist":{"shasum":"5ea9e85728e00b8276655827498110b72a14b332","size":271294,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.0.5.tgz"},"directories":{},"publish_time":1400609392272,"_cnpm_publish_time":1400609392272,"_hasShrinkwrap":false},"0.0.4":{"name":"xxhashjs","version":"0.0.4","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha","prepublish":"lmd build xxhash; lmd build xxhash.min"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"lmd":"1.11.x","benchmark":"*"},"_id":"xxhashjs@0.0.4","dist":{"shasum":"b87f8e154f7b2c2496e3c12c67162dc75425f94b","size":270767,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.0.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"directories":{},"publish_time":1398451938896,"_cnpm_publish_time":1398451938896,"_hasShrinkwrap":false},"0.0.3":{"name":"xxhashjs","version":"0.0.3","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha","prepublish":"lmd build xxhash; lmd build xxhash.min"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"lmd":"1.11.x","benchmark":"*"},"_id":"xxhashjs@0.0.3","dist":{"shasum":"f820fec64840b0fdd24ed49f0f2f9b7ce02b6c16","size":270728,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"directories":{},"publish_time":1395394930248,"_cnpm_publish_time":1395394930248,"_hasShrinkwrap":false},"0.0.2":{"name":"xxhashjs","version":"0.0.2","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha","prepublish":"lmd build xxhash; lmd build xxhash.min"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"devDependencies":{"lmd":"1.11.x"},"readmeFilename":"README.md","_id":"xxhashjs@0.0.2","dist":{"shasum":"c41ed7605dcacfc72d37a8c53cffa2ca03144481","size":10144,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"directories":{},"publish_time":1390148781549,"_cnpm_publish_time":1390148781549,"_hasShrinkwrap":false},"0.0.1":{"name":"xxhashjs","version":"0.0.1","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"readmeFilename":"README.md","_id":"xxhashjs@0.0.1","dist":{"shasum":"cf9855508f37dc007a0e67071fddef186bc4a7f0","size":3845,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"directories":{},"publish_time":1388609810286,"_cnpm_publish_time":1388609810286,"_hasShrinkwrap":false},"0.0.0":{"name":"xxhashjs","version":"0.0.0","description":"xxHash in Javascript","main":"xxhash.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/pierrec/js-xxhash"},"keywords":["xxhash"],"author":{"name":"Pierre Curto"},"license":"MIT","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"homepage":"https://github.com/pierrec/js-xxhash","dependencies":{"cuint":"latest"},"readmeFilename":"README.md","_id":"xxhashjs@0.0.0","dist":{"shasum":"b0ff6e210ccf7f6641879630727cf0ba68977ace","size":3634,"noattachment":false,"key":"/xxhashjs/-/xxhashjs-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xxhashjs/download/xxhashjs-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"pierrec","email":"pierre.curto@gmail.com"},"maintainers":[{"name":"pierrec","email":"pierre.curto@gmail.com"}],"directories":{},"publish_time":1388502795244,"_cnpm_publish_time":1388502795244,"_hasShrinkwrap":false}},"readme":"# Javascript implementation of xxHash\n\n## Synopsis\n\nxxHash is a very fast hashing algorithm (see the details [here](https://code.google.com/p/xxhash/)). xxhashjs is a Javascript implementation of it, written in 100% Javascript. Although not as fast as the C version, it does perform pretty well given the current Javascript limitations in handling unsigned 32 bits integers.\n\n\n## Installation\n\nIn nodejs:\n\n    npm install xxhashjs\n\nIn the browser, include the following, and access the constructor with _XXH_:\n\n```javascript\n<script src=\"/your/path/to/xxhash.js\"></script>\n```\n\n\n## Examples\n\n* In one step:\n```javascript\nvar h = XXH.h32( 'abcd', 0xABCD ).toString(16)\t// seed = 0xABCD\n```\n> 0xCDA8FAE4\n\n* In several steps (useful in conjunction of NodeJS streams):\n```javascript\nvar H = XXH.h32( 0xABCD )\t// seed = 0xABCD\nvar h = H.update( 'abcd' ).digest().toString(16)\n```\n> 0xCDA8FAE4\n\n* More examples in the examples directory:\n\t* Compute xxHash from a file data\n\t* Use xxHashjs in the browser\n\n\n## Usage\n\n* XXH makes 2 functions available for 32 bits XXH and 64 bits XXH respectively, with the same signature:\n\n\t* XXH.h32\n\t* XXH.h64\n\n* In one step:\n`XXH.h32(<data>, <seed>)`\nThe data can either be a string, an ArrayBuffer or a NodeJS Buffer object.\nThe seed can either be a number or a UINT32 object.\n\n* In several steps:\n\t* instantiate a new XXH object H:\n`XXH.h32(<seed>)` or `XXH.h32()`\nThe seed can be set later on with the `init` method\n\n\t* add data to the hash calculation:\n`H.update(<data>)`\n\n\t* finish the calculations:\n`H.digest()`\n\nThe object returned can be converted to a string with `toString(<radix>)` or a number `toNumber()`.\nOnce `digest()` has been called, the object can be reused. The same seed will be used or it can be changed with `init(<seed>)`.\n\n\n## Methods\n\n* `XXH.h32()`\n\t* `.init(<seed>)`\n\tInitialize the XXH object with the given seed. The seed can either be a number or a UINT32 object.\n\t* `.update(<data>)`\n\tAdd data for hashing. The data can either be a string, an ArrayBuffer or a NodeJS Buffer object.\n\n* `digest()` (_UINT32_)\n\tFinalize the hash calculations and returns an UINT32 object. The hash value can be retrieved with toString(<radix>).\n\n* `XXH.h64()`\n\t* `.init(<seed>)`\n\tInitialize the XXH object with the given seed. The seed can either be a number or a UINT64 object.\n\t* `.update(<data>)`\n\tAdd data for hashing. The data can either be a string, an ArrayBuffer or a NodeJS Buffer object.\n\t* `.digest()` (_UINT64_)\n\tFinalize the hash calculations and returns an UINT64 object. The hash value can be retrieved with toString(<radix>).\n\n\n## License\n\nMIT","_attachments":{},"homepage":"https://github.com/pierrec/js-xxhash","bugs":{"url":"https://github.com/pierrec/js-xxhash/issues"},"license":"MIT"}