get-hash-code

0.0.2 • Public • Published

GetHashCode()

A small hashing function for strings based on .NET's String.GetHashCode

Installation

npm install get-hash-code

Usage

The module is exported as a single function, which when called with a string argument returns the integer hash code:

var getHashCode = require('get-hash-code');
console.log(getHashCode("foo"));

Outputs:

1502598398

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i get-hash-code

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • rossipedia