JSPM

@f/hash-str

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q50083F
  • License MIT

Simple, uniformly distributed 32-bit string hash

Package Exports

  • @f/hash-str

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@f/hash-str) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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