1.0.0 • Published 6 years ago
@basekits/kit-hashing v1.0.0
@basekits/kit-hashing
Hash functions kit for basekits.
Install
npm i @basekits/kit-hashingUsage
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 -21263681011.0.0
6 years ago