@alphahydrae/dgstore
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

dgstore

Hash files and store the digests next to the files for future comparison.

npm version license

Usage

Running this command will create digest files next to your files so that you can easily check whether the file has changed in the future.

For example, running dgstore on a backup.tar.gz file would create a backup.tar.gz.sha512 file in the same directory. If that .sha512 digest file already exists, it will read it, re-hash the file, and compare both hashes to tell you whether it has changed or not since the digest file was saved.

npm install -g dgstore

# Compute and store/check a single file's digest.
dgstore "some-file.txt"

# A directory's imediate files.
dgstore "some-directory/*"

# All files in a directory (recursively).
dgstore "some-directory/**/*"

# Include dot files.
dgstore "some-directory/*" "some-directory/.*"

Requirements

Package Sidebar

Install

npm i @alphahydrae/dgstore

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

23.3 kB

Total Files

8

Last publish

Collaborators

  • alphahydrae