ultimateanu.HashDir.Core 1.4.0

dotnet add package ultimateanu.HashDir.Core --version 1.4.0
                    
NuGet\Install-Package ultimateanu.HashDir.Core -Version 1.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ultimateanu.HashDir.Core" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ultimateanu.HashDir.Core" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="ultimateanu.HashDir.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ultimateanu.HashDir.Core --version 1.4.0
                    
#r "nuget: ultimateanu.HashDir.Core, 1.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ultimateanu.HashDir.Core@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ultimateanu.HashDir.Core&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=ultimateanu.HashDir.Core&version=1.4.0
                    
Install as a Cake Tool

hashdir

build test codecov

sample terminal usage

A command-line utility to hash directories and files.

hashdir aims to be the easiest way to hash a file/directory. This is useful in many situations such as transferring files, archiving data, or detecting duplicates. It is a single binary, works on all major OS's, and has a simple command-line interface. It is developed with F# on .NET 8.

Links: Github, NuGet, Project Site

Installation

There are several ways to get hashdir. Full details can be found here.

  • Homebrew*: brew install ultimateanu/software/hashdir
  • dotnet: dotnet tool install --global hashdir
  • Scoop: scoop bucket add ultimateanu https://github.com/ultimateanu/homebrew-software; scoop install hashdir
  • Stand-alone binary: latest version for macOS, Windows, and Linux can be found at releases
  • AUR (Arch User Repository): If you are using an Arch-based distribution, you can build and install the hashdir package from the AUR

*Homebrew currently requires a project to have 50 stars to be included in core. So I’ve set up a custom tap for now that still allows easy installation. If you like this project, please consider starring on Github and adding a formula to Homebrew core eventually.

Usage

Description:
  A command-line utility to hash directories and files.

Usage:
  hashdir [<item>...] [command] [options]

Arguments:
  <item>  Directory or file to hash/check

Options:
  -t, --tree                                                        Print directory tree
  -s, --save                                                        Save the checksum to a file
  -a, --algorithm <blake3|md5|ripemd160|sha1|sha256|sha384|sha512>  The hash function to use [default: sha1]
  -i, --include-hidden-files                                        Include hidden files
  -e, --skip-empty-dir                                              Skip empty directories
  -n, --ignore <pattern>                                            Directories/files to not include
  -h, --hash-only                                                   Print only the hash
  -c, --color                                                       Colorize the output [default: True]
  --version                                                         Show version information
  -?, -h, --help                                                    Show help and usage information


Commands:
  check <item>  Verify that the specified hash file is valid.

Examples

  1. Hash a file/directory: hashdir ~/Desktop/project/
  2. Hash a directory with hidden files and print tree: hashdir --include-hidden-files --tree ~/Desktop/project
  3. Hash multiple items using MD5: hashdir -a md5 song.mp3 info.txt report.pdf
  4. Hash a directory, but ignore certain directories/files: hashdir --ignore "node_modules" --ignore "**/*.xml" ~/Desktop/project

License

MIT License

hashdir is an open-source project with a permissive license. If you find a bug or have suggestions feel free to create an issue on Github. Any contributions to the code, tests, or documentation are also welcome via a pull request.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 244 8/16/2025 1.4.0 is deprecated because it is no longer maintained.