Skip to content
forked from Jason3S/xxhash

Pure JS Implementation of xxhash

License

Notifications You must be signed in to change notification settings

gnlow/deno-xxhash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));