nsuite - v1.0.1
    Preparing search index...

    Function getFileMd5

    • Calculates the MD5 hash of a file and returns a promise that resolves with the hash.

      Parameters

      • options: { pathFile: string }

        The options for the hash operation.

        • pathFile: string

          The path to the file for which the hash is to be calculated.

      Returns Promise<string>

      • A promise that resolves with the MD5 hash of the file.
      import { getFileMd5 } from "nsuite";
      const md5 = await getFileMd5({ pathFile: "./package.json" });