0.0.18 • Published 8 months ago

dirman v0.0.18

Weekly downloads
-
License
The Unlicense
Repository
github
Last release
8 months ago

dirman

Static Badge

eerer

npm.io

dirman is a command-line tool designed to help you quickly identify which files exist in one directory but not another.

Use case: I have a lot of versions of folder archives, so this helps with this, I guess.

*NOW WITH FEATURES!:*

  • Compares files based on hash, size, or basename.
  • Flexible matching conditions: require all files to match (default) or any file.

Installation

Node.js v18 or later. To install dirman globally: yarn global add dirman

Usage:

dirman <directory1> <directory2> [options]

Options:

Short OptionAliasDescriptionDefaultTypeNotez
-h--helpShows this help message.booleantrue or false, obviously
-c--compareComparison method (comma-separated for multiple).hashstring (array)options are: hash, basename, and size.
-m--matchMatching condition.allstring (enum)all or any

Comparison Methods:

  • hash: Compares file content based on xxhash3.
  • size: Compares file size in bytes.
  • basename: Compares file names (without path).

Match Conditions:

  • all: All comparison methods must match.
  • any: Any comparison methods may match.

Example:

dirman /path/to/folder1 /path/to/folder2 -c hash,size -m any

This will find any files in /path/to/folder1 that either have a different hash or size compared to files in /path/to/folder2.

thank.

i am ɛʟʟɨօȶ b =^._.^= ∫ elliot@email.gd / elliot.computer

0.0.18

8 months ago

0.0.17

8 months ago

0.0.14

9 months ago

0.0.15

9 months ago

0.0.16

9 months ago

0.0.13

9 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.9

1 year ago

0.0.7

1 year ago