This lib is a very simple Node API for Rust MetroHash. All credits for: https://github.com/arthurprs/metrohash-rs
It was created because the C implementation of MetroHash cannot be compiled for ARM.
Install:
npm install metrohash-rs-n
Use:
import { metrohash128, metrohash64 } from 'metrohash-rs-n';
const data = "foo";
const seed = 12345;
console.log(metrohash128(data, seed));
console.log(metrohash64(data, seed));