Installation
npm install --save @types/short-hash
Summary
This package contains type definitions for short-hash (https://github.com/joakimbeng/short-hash#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/short-hash.
index.d.ts
/**
* Get a short hash from a string. Uses Bernstein's popular "times 33" hash algorithm but returns a hex string instead of a number.
* @param str The string to hash.
*/
export default function shortHash(str: string): string;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Ericsson Schroeter.