wasm-murmur3
v0.1.2
Published
A WebAssembly implementation of the fast, non-cryptographic hash
Downloads
7
Readme
wasm-murmur3
- 🌟 A WebAssembly implementation of the fast, non-cryptographic hash murmur3
- 🔋 Use rust crate murmur3
- 📦 Build with wasm-pack
🚴 Usage
🐑 Use npm
or yarn
to install package
npm install wasm-murmur3 --save
# Or use yarn
yarn add wasm-murmur3
📖 Import the package on nodejs
const Murmur3 = require('wasm-murmur3')
// hex128: (source: string, seed: number): string
Murmur3.hex128('Hello, world!', 0); // f1512dd1d2d665df2c326650a8f3c564
🍔 Devlopment
🛠️ Build with wasm-pack build
wasm-pack build --target nodejs
# ⬆️ Just build for cjs, you can build for esm ⬇️
wasm-pack build
The pkg
directory is the package directory
🔋 Batteries Included
wasm-bindgen
for communicating between WebAssembly and JavaScript.murmur3
this is a rust implementation of the fast, non-cryptographic hash murmur3.