{"_id":"js-xxhash","_rev":"220636","name":"js-xxhash","description":"Pure JS implementation of xxhash","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"time":{"modified":"2021-06-03T15:39:45.000Z","created":"2019-01-22T21:15:49.914Z","1.0.4":"2019-07-28T15:16:48.681Z","1.0.3":"2019-07-28T14:51:46.456Z","1.0.2":"2019-07-28T14:47:52.696Z","1.0.1":"2019-02-02T09:19:30.757Z","1.0.0":"2019-01-22T21:15:49.914Z"},"users":{},"author":{"name":"Jason Dent"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/xxhash.git"},"versions":{"1.0.4":{"name":"js-xxhash","version":"1.0.4","description":"Pure JS implementation of xxhash","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist/**","test":"mocha --recursive \"./dist/**/*.test.js\"","test-watch":"mocha --watch --require ts-node/register --recursive \"src/**/*.test.ts\"","build":"tsc","clean-build":"npm run clean ; npm run build","coverage":"NODE_ENV=test nyc npm run test-ts","test-ts":"NODE_ENV=test mocha --require ts-node/register --recursive \"src/**/*.test.ts\"","coverage-coveralls":"nyc report --reporter=text-lcov | coveralls","travis-coverage":"npm run coverage && npm run coverage-coveralls","watch":"tsc -w"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/xxhash.git"},"keywords":["xxhash","javascript","typescript"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/xxhash/issues"},"homepage":"https://github.com/Jason3S/xxhash#readme","devDependencies":{"@types/chai":"^4.1.7","@types/lorem-ipsum":"^1.0.2","@types/mocha":"^5.2.7","@types/node":"^10.14.13","chai":"^4.2.0","coveralls":"^3.0.5","lorem-ipsum":"^1.0.6","mocha":"^6.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^14.1.1","ts-node":"^8.3.0","typescript":"^3.5.3","xxhashjs":"^0.2.2"},"nyc":{"include":["src/**/*.ts"],"exclude":["src/**/*.test.ts"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["json","html"]},"engines":{"node":">=8.0.0"},"gitHead":"26bbbaa8a6cde36e6ace6508082c6828f61fd02a","_id":"js-xxhash@1.0.4","_nodeVersion":"10.15.1","_npmVersion":"6.9.0","dist":{"shasum":"ce465d8a5c038167a07aa35a855c0bd792fe8e06","size":5513,"noattachment":false,"key":"/js-xxhash/-/js-xxhash-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-xxhash/download/js-xxhash-1.0.4.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-xxhash_1.0.4_1564327008554_0.8542301756605"},"_hasShrinkwrap":false,"publish_time":1564327008681,"_cnpm_publish_time":1564327008681},"1.0.3":{"name":"js-xxhash","version":"1.0.3","description":"Pure JS implementation of xxhash","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist/**","test":"mocha --recursive \"./dist/**/*.test.js\"","test-watch":"mocha --watch --require ts-node/register --recursive \"src/**/*.test.ts\"","build":"tsc","clean-build":"npm run clean ; npm run build","coverage":"NODE_ENV=test nyc npm run test-ts","test-ts":"NODE_ENV=test mocha --require ts-node/register --recursive \"src/**/*.test.ts\"","coverage-coveralls":"nyc report --reporter=text-lcov | coveralls","travis-coverage":"npm run coverage && npm run coverage-coveralls","watch":"tsc -w"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/xxhash.git"},"keywords":["xxhash","javascript","typescript"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/xxhash/issues"},"homepage":"https://github.com/Jason3S/xxhash#readme","devDependencies":{"@types/chai":"^4.1.7","@types/lorem-ipsum":"^1.0.2","@types/mocha":"^5.2.7","@types/node":"^10.14.13","chai":"^4.2.0","coveralls":"^3.0.5","lorem-ipsum":"^1.0.6","mocha":"^6.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^14.1.1","ts-node":"^8.3.0","typescript":"^3.5.3","xxhashjs":"^0.2.2"},"nyc":{"include":["src/**/*.ts"],"exclude":["src/**/*.test.ts"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["json","html"]},"engines":{"node":">=8.0.0"},"gitHead":"6c116739c17e5e5b71c61b61459668b429c737e5","_id":"js-xxhash@1.0.3","_nodeVersion":"10.15.1","_npmVersion":"6.9.0","dist":{"shasum":"34356223566ed16aafbb38fc08c03d59c68946f3","size":5426,"noattachment":false,"key":"/js-xxhash/-/js-xxhash-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-xxhash/download/js-xxhash-1.0.3.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-xxhash_1.0.3_1564325506335_0.6623190866995854"},"_hasShrinkwrap":false,"publish_time":1564325506456,"_cnpm_publish_time":1564325506456},"1.0.2":{"name":"js-xxhash","version":"1.0.2","description":"Pure JS implementation of xxhash","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist/**","test":"mocha --recursive \"./dist/**/*.test.js\"","test-watch":"mocha --watch --require ts-node/register --recursive \"src/**/*.test.ts\"","build":"tsc","clean-build":"npm run clean ; npm run build","coverage":"NODE_ENV=test nyc npm run test-ts","test-ts":"NODE_ENV=test mocha --require ts-node/register --recursive \"src/**/*.test.ts\"","coverage-coveralls":"nyc report --reporter=text-lcov | coveralls","travis-coverage":"npm run coverage && npm run coverage-coveralls","watch":"tsc -w"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/xxhash.git"},"keywords":["xxhash","javascript","typescript"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/xxhash/issues"},"homepage":"https://github.com/Jason3S/xxhash#readme","devDependencies":{"@types/chai":"^4.1.7","@types/lorem-ipsum":"^1.0.2","@types/mocha":"^5.2.7","@types/node":"^10.14.13","chai":"^4.2.0","coveralls":"^3.0.5","lorem-ipsum":"^1.0.6","mocha":"^6.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^14.1.1","ts-node":"^8.3.0","typescript":"^3.5.3","xxhashjs":"^0.2.2"},"nyc":{"include":["src/**/*.ts"],"exclude":["src/**/*.test.ts"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["json","html"]},"engines":{"node":">=8.0.0"},"gitHead":"b2f9786553aea3727d5a4e6f53072f410ecb41c6","_id":"js-xxhash@1.0.2","_nodeVersion":"10.15.1","_npmVersion":"6.9.0","dist":{"shasum":"08cf6a91aefc4b6e04ffa8ade5e926668ea6ffca","size":7410,"noattachment":false,"key":"/js-xxhash/-/js-xxhash-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-xxhash/download/js-xxhash-1.0.2.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-xxhash_1.0.2_1564325272563_0.5613660755835195"},"_hasShrinkwrap":false,"publish_time":1564325272696,"_cnpm_publish_time":1564325272696},"1.0.1":{"name":"js-xxhash","version":"1.0.1","description":"Pure JS implementation of xxhash","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist/**","test":"mocha --recursive \"./dist/**/*.test.js\"","test-watch":"mocha --watch --require ts-node/register --recursive \"src/**/*.test.ts\"","build":"tsc","clean-build":"npm run clean ; npm run build","coverage":"NODE_ENV=test nyc npm run test-ts","test-ts":"NODE_ENV=test mocha --require ts-node/register --recursive \"src/**/*.test.ts\"","coverage-coveralls":"nyc report --reporter=text-lcov | coveralls","travis-coverage":"npm run coverage && npm run coverage-coveralls","watch":"tsc -w"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/xxhash.git"},"keywords":["xxhash","javascript","typescript"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/xxhash/issues"},"homepage":"https://github.com/Jason3S/xxhash#readme","devDependencies":{"@types/chai":"^4.1.7","@types/lorem-ipsum":"^1.0.2","@types/mocha":"^5.2.5","@types/node":"^10.12.18","chai":"^4.2.0","coveralls":"^3.0.2","lorem-ipsum":"^1.0.6","mocha":"^5.2.0","mocha-lcov-reporter":"^1.3.0","nyc":"^13.1.0","ts-node":"^7.0.1","typescript":"^3.2.4","xxhashjs":"^0.2.2"},"nyc":{"include":["src/**/*.ts"],"exclude":["src/**/*.test.ts"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["json","html"]},"engines":{"node":">=8.0.0"},"gitHead":"28b728d66dbb290dbbf7b9ec31481e23753edbf1","_id":"js-xxhash@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"8ef97ff13576abac8539e91512a4033f0e9d69c5","size":7203,"noattachment":false,"key":"/js-xxhash/-/js-xxhash-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-xxhash/download/js-xxhash-1.0.1.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-xxhash_1.0.1_1549099170045_0.8643587679287656"},"_hasShrinkwrap":false,"publish_time":1549099170757,"_cnpm_publish_time":1549099170757},"1.0.0":{"name":"js-xxhash","version":"1.0.0","description":"Pure JS implementation of xxhash","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist/**","test":"mocha --recursive \"./dist/**/*.test.js\"","test-watch":"mocha --watch --require ts-node/register --recursive \"src/**/*.test.ts\"","build":"tsc","clean-build":"npm run clean ; npm run build","coverage":"NODE_ENV=test nyc npm run test-ts","test-ts":"NODE_ENV=test mocha --require ts-node/register --recursive --bail \"src/**/*.test.ts\"","coverage-coveralls":"nyc report --reporter=text-lcov | coveralls","travis-coverage":"npm run coverage && npm run coverage-coveralls","watch":"tsc -w"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/xxhash.git"},"keywords":["xxhash","javascript","typescript"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/xxhash/issues"},"homepage":"https://github.com/Jason3S/xxhash#readme","devDependencies":{"@types/chai":"^4.1.7","@types/lorem-ipsum":"^1.0.2","@types/mocha":"^5.2.5","@types/node":"^10.12.18","chai":"^4.2.0","coveralls":"^3.0.2","lorem-ipsum":"^1.0.6","mocha":"^5.2.0","nyc":"^13.1.0","ts-node":"^7.0.1","typescript":"^3.2.4","xxhashjs":"^0.2.2"},"nyc":{"include":["src/**/*.ts"],"exclude":["src/**/*.test.ts"],"extension":[".ts"],"require":["ts-node/register"],"reporter":["json","html"]},"engines":{"node":">=8.0.0"},"gitHead":"184243c844e09a8f286a118186b012bf41a1b411","_id":"js-xxhash@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"930b792f81ce49dcfc348f325d0732deb3a2441b","size":5521,"noattachment":false,"key":"/js-xxhash/-/js-xxhash-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/js-xxhash/download/js-xxhash-1.0.0.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-xxhash_1.0.0_1548191749771_0.530190865937231"},"_hasShrinkwrap":false,"publish_time":1548191749914,"_cnpm_publish_time":1548191749914}},"readme":"# xxHash\nPure Javascript / Typescript Implementation of [xxHash](http://cyan4973.github.io/xxHash/)\n\nThis is an implementation for the\n[XXH32 Algorithm](https://github.com/Cyan4973/xxHash/blob/master/doc/xxhash_spec.md#xxh32-algorithm-description).\n\nA 64-bit version might come a bit later.\n\n## Why another version\n* I needed a fast simple hash for short to medium sized strings.\n* It needed to be pure JS.\n\n## Installation\n\n```\nnpm install --save js-xxhash\n```\n\n## Usage\n\n### Pure JS\nUses an internal JS conversion of strings to a UTF-8 `Uint8Array`.\nFor higher performance consider using dedicated converters in the examples for Node and Browser below.\n\n```typescript\nimport {xxHash32} from 'js-xxhash';\n\nlet seed = 0;\nlet str = 'My text to hash ????';\nlet hashNum = xxHash32(str, seed);\nconsole.log(hashNum.toString(16));\n```\n\nExpected:\n```\naf7fd356\n```\n\n### Node JS\n\n```typescript\nimport {xxHash32} from 'js-xxhash';\n\nlet seed = 0;\nlet str = 'My text to hash ????';\nlet hashNum = xxHash32(Buffer.from(str, 'utf8'), seed);\nconsole.log(hashNum.toString(16));\n```\n\n\n### Browser\n\nIn a browser, you need to use a function or library to create a\n[`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)\n\nUsing [Browserify](http://browserify.org/) you can use it like this:\n```typescript\nimport {xxHash32} from 'js-xxhash';\n\nlet textEncoder = new TextEncoder(); // Note TextEncoder is experimental\nlet seed = 0;\nlet str = 'My text to hash ????';\nlet hashNum = xxHash32(textEncoder.encode(str), seed);\nconsole.log(hashNum.toString(16));\n\n```\n","_attachments":{},"homepage":"https://github.com/Jason3S/xxhash#readme","bugs":{"url":"https://github.com/Jason3S/xxhash/issues"},"license":"MIT"}