Skip to content

braquino/metrohash-rs-n

Repository files navigation

Rust Metrohash Node bindings

Build Status NPM version

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));

About

A metrohash-rs bindings for node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published