node-xxhash
node-xxhash copied to clipboard
Support worker thread, fix #26
Following code should work:
// index.js
const xxhash = require('xxhash');
const { Worker } = require('worker_threads');
const worker = new Worker('./worker.js');
// worker.js
const xxhash = require('xxhash');
ref: https://github.com/nodejs/nan/pull/792
fix #26