google-cityhash
v1.0.0
Published
Pure JavaScript implement for CityHash. (No C++ binding)
Downloads
109
Maintainers
Readme
CityHash for Node.js
Pure JavaScript implement for CityHash. (No C++ binding)
Installation
$ npm install --save google-cityhash
Usage
const hash = require('google-cityhash');
CityHash 32
const ret = hash.city32('text');
Returns a hash number.
CityHash 64
const ret = hash.city64('text');
Returns a Long object.
CityHash 128
const ret = hash.city128('text');
Returns a City128Value object.
Contribution
You're welcome to make pull requests.
「雖然我覺得不怎麼可能有人會關注我」