Installation
npm install --save @types/fnv-plus
Summary
This package contains type definitions for fnv-plus (https://github.com/tjwebb/fnv-plus).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fnv-plus.
export as namespace fnv;
export interface FnvHash {
str: () => string;
hex: () => string;
dec: () => string;
}
export function hash(value: string, bitlength?: number): FnvHash;
export function seed(seed: string): void;
export function useUTF8(enable: boolean): void;
export function fast1a32(value: string): number;
export function fast1a32hex(value: string): string;
export function fast1a32utf(value: string): number;
export function fast1a32hexutf(value: string): string;
export function fast1a52(value: string): number;
export function fast1a52hex(value: string): string;
export function fast1a52utf(value: string): number;
export function fast1a52hexutf(value: string): string;
export function fast1a64(value: string): number;
export function fast1a64hex(value: string): string;
export function fast1a64utf(value: string): number;
export function fast1a64hexutf(value: string): string;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Mihnea Stoian.