Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

js-hash

littocats42Apache-2.00.0.1

Algorithm for calculate string's hash value with pure Javascript.

hash, BKDR, SDBM, RS, AP, JS, DEK, FNV, DJB, DJB2, PJW, ELF

readme

Algorithm for calculate string's hash value with pure Javascript.

Install

npm install --save js-hash

Usage

var BKDR = require('js-hash/bkdr');

var strhash = BKDR.hash('some string');

For less conflicts, use as follows:

var strhash = BDKR('some string')