1.0.1 • Published 1 year ago

hash-of-directory v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

hash-of-directory

Calculate the hash of a directory and its files.

Install

yarn add hash-of-directory

Usage

import { hashOfDirectory } from "hash-of-directory";

const dir = path.join(__dirname, "example");

const hash = await hashOfDirectory(dir);

// you can also specify a specific encoding and algoritm
// defaults to sha256 algoritm & base64 encoding

const hash2 = await hashOfDirectory(dir, {
  algorithm: "sha1",
  encoding: "hex",
});
1.0.1

1 year ago

1.0.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago