Installation
npm install --save @types/ssdeep.js
Summary
This package contains type definitions for ssdeep.js (https://github.com/cloudtracer/ssdeep.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ssdeep.js.
index.d.ts
export type Hash = string;
/**
* Returns a hash of the given string.
* @param data Any string
*/
export function digest(data: string): Hash;
/**
* Compares two hashes previously generated by ssdeep.digest().
* @param d1 The first hash to compare
* @param d2 The second hash to compare
* @returns The similarity of the two hashes (A number between 0 and 100)
*/
export function similarity(d1: Hash, d2: Hash): number;
export as namespace ssdeep;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by JPBM135.