metrohash-rs-n
v1.0.1
Published
![Build Status](https://github.com/braquino/metrohash-rs-n/actions/workflows/CI.yml/badge.svg) <span class="badge-npmversion"><a href="https://www.npmjs.com/package/metrohash-rs-n" title="View this project on NPM"><img src="https://img.shields.io/npm/v/me
Downloads
552
Readme
Rust Metrohash Node bindings
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.
Usage
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));