This is a micro-package designed to be light-weight and make 1 job as simply as possible. That job should only be to reduce a typed array using a simple XOR pattern.
NOTE: Currently, only
Uint8Array
is handled but this pattern should work with anyTypedArray
Turns on debugging logs.
const { xor_digest, logging } = require('@whi/xor-digest').bindNative();
logging(); // show debug logs
- Developed using Node.js
v12.20.0
No build required. Vanilla JS only.
To run all tests with logging
make test-debug
make test-unit-debug
- Unit tests onlymake test-integration-debug
- Integration tests only
NOTE: remove
-debug
to run tests without logging