Constructs a new MurmurHash object that can be used to generate murmurhash digests from the data stream.
If algorithm is an instance of a MurmurHash or a serialized object, the seed option is being ignored.
one of the available murmurhash algorithms, a murmur hasher instance or a serialized object.
hasher or stream options.
Constructs a new MurmurHash object that can be used to generate murmurhash digests from the data stream.
one of the available murmurhash algorithms.
initial hash seed as an unsigned 32-bit integer.
Lists available algorithm names for [createHash].
Generated using TypeDoc
murmurhash-native/stream
module.Example:
import { createHash } from "murmurhash-native/stream" import * as fs from "fs" fs.createReadStream("hash_me.txt") .pipe(createHash("murmurhash128x64", {seed: 42, encoding: "hex"})) .pipe(fs.createWriteStream("hash_me.txt.hash"))
If you don't need stream interface prefer to use utilities from the incremental module.