Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 492 Bytes

README.md

File metadata and controls

14 lines (13 loc) · 492 Bytes

deno-xxhash

Fork of Jason3S/xxhash for deno

What has changed from the original?

I just changed module names.
import toUtf8 from './toUtf8'; -> import toUtf8 from './toUtf8.ts';

Usage

import {xxHash32} from "https://raw.githubusercontent.com/gnlow/deno-xxhash/master/mod.ts";

let seed = 0;
let str = 'My text to hash 😊';
let hashNum = xxHash32(str, seed);
console.log(hashNum.toString(16));