npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

finddups

v1.0.4

Published

Find and interactively remove duplicate files and directories

Downloads

9

Readme

finddups is a command line tool to find and remove duplicate files and directory trees for Windows, macOS and Linux. It aims to be as efficient as possible, only reading as much of each file as required to determine if it is unique.

It considers only the contents of files and directories and the destination of symbolic links to determine duplicates. Filesystem metadata such as permissions, ACLs, MAC times and xattrs are ignored.

Files automatically created by file managers and operating systems, such as .DS_Store, Thumbs.db or ._* files are counted when determining uniqueness of directories. It is recommended to remove these files before running finddups.

Installation

  1. Install Node.js version 8.7 or greater.

  2. Install the package via npm:

    $ npm install -g finddups

Usage

Run it and pass it one or more files or directories to scan for duplicates. Once finished, it will present a list with the biggest duplicate sets first. You can step through the list with n and p, action the current duplicate set with 1,2,3..etc and D, or quit with q.

Example:

$ finddups ~/my_stuff /media/some_drive ~/some_file.doc
Scanning /home/bob/my_stuff
Scanning /media/some_drive
Scanning /home/bob/some_file.doc
Found 378,082 files, 941.79 GB
Reading file data of potential duplicates
1.64% of 15.98 GB, 52.73 MB/s, ETA 00:04:58
21.73% of 15.89 GB, 62.79 MB/s, ETA 00:03:18
...
83.65% of 15.76 GB, 73.25 MB/s, ETA 00:00:35
100.00% of 15.76 GB, 76.57 MB/s, ETA 00:00:00

Found 441 duplicate sets, 7.82 GB duplicated

1/441: dir 10945 (3 copies, 734.82 MB duplicated)
Please select an option:
  1: Keep only "/home/bob/my_stuff/some dir/Foo Photos"
  2: Keep only "/media/some_drive/blah/Photos/Foo Photos"
  3: Keep only "/media/some_drive/Desktop/Old Stuff/Foo Photos"
  D: Delete ALL
  n: Next duplicate
  p: Previous duplicate
  q: Quit
> █

Development

finddups is a Node.js project using Babel, Flow and Prettier and has no runtime dependencies. Sources are in src/ and are compiled into dist/ with babel src --out-dir dist --source-maps. The main entry point is dist/main.js.