@basekits/kit-hashing

Hash functions kit for basekits.

Usage no npm install needed!

<script type="module">
  import basekitsKitHashing from 'https://cdn.skypack.dev/@basekits/kit-hashing';
</script>

README

@basekits/kit-hashing

Hash functions kit for basekits.

Install

npm i @basekits/kit-hashing

Usage

const kit = require('@basekits/core')
const hashing = require('@basekits/kit-hashing')
kit.addKit(hashing)

Available Items

The following methods will be available after adding this kit:

.hashcode(str)

Java's hashcode implementation in javascript. Returns positive or negative number.

kit.hashcode('hello') // returns 99162322
kit.hashcode('lorem ipsum') // returns -2126368101