@f/hash-str

Simple, uniformly distributed 32-bit string hash

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/hash-str
011.0.06 years ago6 years agoMinified + gzip package size for @f/hash-str in KB

Readme

hash-str

Build status Git tag NPM version Code style

Simple, uniformly distributed, non-cryptographic (don't use this for anything security related!) 32-bit string hash.

Installation

$ npm install @f/hash-str

Usage

var hashStr = require('@f/hash-str')

hashStr('some string') // -> 32-bit hash of 'some string'

API

hashStr(str)

  • str - The string you want to hash

Returns: 32-bit integer hash of str.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.