Skip to content

Repository files navigation

CityHash for Node.js

cityhashcityhashTest & CoverageCoverage StatusLicenseDependencies StatusStar at GitHub

Pure JavaScript implement for CityHash. (No C++ binding)

Installation

$ npm install --save google-cityhash

Usage

consthash=require('google-cityhash');

CityHash 32

constret=hash.city32('text');

Returns a hash number.

CityHash 64

constret=hash.city64('text');

Returns a Long object.

CityHash 128

constret=hash.city128('text');

Returns a City128Value object.

Contribution

You're welcome to make pull requests.

「雖然我覺得不怎麼可能有人會關注我」

About

Pure JavaScript implement for CityHash. (No C++ binding)

Resources

Stars

3 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages