google-cityhash
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

CityHash for Node.js

cityhash cityhash Test & Coverage Coverage Status License Dependencies Status Star at GitHub

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.

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    14

Package Sidebar

Install

npm i google-cityhash

Weekly Downloads

12

Version

1.0.0

License

MIT

Unpacked Size

4.08 kB

Total Files

6

Last publish

Collaborators

  • xadillax