A WebAssembly implementation of the fast, non-cryptographic hash
npm install wasm-murmur3wasm-murmur3- 🌟 A WebAssembly implementation of the fast, non-cryptographic hash murmur3
- 🔋 Use rust crate murmur3
- 📦 Build with wasm-pack
``bash`
npm install wasm-murmur3 --saveOr use yarn
yarn add wasm-murmur3
`js
const Murmur3 = require('wasm-murmur3')
// hex128: (source: string, seed: number): string
Murmur3.hex128('Hello, world!', 0); // f1512dd1d2d665df2c326650a8f3c564
`
`bash`
wasm-pack build --target nodejs⬆️ Just build for cjs, you can build for esm ⬇️
wasm-pack build
The pkg directory is the package directory
* wasm-bindgen for communicating
between WebAssembly and JavaScript.
* murmur3` this is a rust implementation of the fast, non-cryptographic hash murmur3.