node-xxhash icon indicating copy to clipboard operation
node-xxhash copied to clipboard

An xxhash binding for node.js

Results 13 node-xxhash issues
Sort by recently updated
recently updated
newest added

The error: ``` Uncaught Exception: Error: The module '/home/matheus/personal/mixmaster-utils/launcher/node_modules/xxhash/build/Release/hash.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 111. This version of Node.js requires NODE_MODULE_VERSION 110. Please try re-compiling or...

Is this repo still maintained?? Are there considerations for upgrading to the xxHash v0.8.0 bindings? Also would be awesome to have the 128-bit option

Following code should work: ```js // index.js const xxhash = require('xxhash'); const { Worker } = require('worker_threads'); const worker = new Worker('./worker.js'); // worker.js const xxhash = require('xxhash'); ``` ref:...

java code: long key = LongHashFunction.xx().hashChar('a'); String key = Long.toHexString(key); System.out.println(key); result: e513e02c99167f96 js code: const xxhash = require('xxhash') const buffer = Buffer.from('a') const key = xxhash.hash64(buffer, 0).toString('hex') console.log(key) result:...

Is there support for the newer XXH3 variant algorithm?

```javascript const XXHash = require('xxhash'); const seed = 0xA0B0C0D0; const s1 = XXHash.hash(Buffer.from('test1234'), seed); const s1hex = XXHash.hash(Buffer.from('test1234'), seed, 'hex'); console.log(`s1:`, s1.toString(16)); // s1: 19c64649 console.log(`s1hex:`, s1hex); // s1hex: 4946c619...

Getting this error... removing node_modules or npm rebuild is not helping. This error is thrown when i'm using threads (workers)

Without this fix building on GCC v4.9.4 is failing with this error and a few others (uselocale-related): ``` /usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’: /usr/include/bits/stdio.h:118:52: error: ‘__getdelim’ was not...