1.0.0 • Published 8 years ago

@f/hash-str v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

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