subtree-checksum
v4.0.0
Published
Creates a SHA256 checksum of a subtree, either as a cli command:
Downloads
6
Readme
subtree-checksum
Creates a SHA256 checksum of a subtree, either as a cli command:
# Create a hash of the files foo.txt and bar.txt
npx subtree-checksum foo.txt bar.txt
# Create a hash of all files in the current directory
npx subtree-checksum .
# or
npx subtree-checksum
# Skip node_modules and .git
npx subtree-checksum --skip=.git,node_modules
or in code:
import subtreeChecksum from "subtree-checksum";
console.log(subtreeChecksum("."));