0.1.2 • Published 3 years ago

wasm-murmur3 v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.
0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago