1.0.0 • Published 4 years ago

@basekits/kit-hashing v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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

1.0.0

4 years ago