@types/ssdeep.js
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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.

/@types/ssdeep.js/

    Package Sidebar

    Install

    npm i @types/ssdeep.js

    Weekly Downloads

    25,139

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    3.44 kB

    Total Files

    5

    Last publish

    Collaborators

    • types