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

zaplicate

v1.0.5

Published

Efficiently clean up duplicate file from your directories with **zaplicate** — a command-line tool packed with features for a streamlined cleanup process.

Downloads

7

Readme

Zaplicate 🧹

Efficiently clean up duplicate file from your directories with zaplicate — a command-line tool packed with features for a streamlined cleanup process.

npm@zaplicate

Features

  1. Duplicate File Detection 🔍 Identify duplicate files using content hashing and transform streams. Eliminate redundant copies effortlessly.

  2. Scan Filters 📁 Focus your cleanup efforts with scan filters based on file size, extensions, and date ranges. Tailor the cleanup to your needs.

  3. Exclusion List 🚫 Preserve important files by excluding them from the cleanup process. Maintain control over what stays and what goes.

  4. Preview Mode 👀 Preview files marked for deletion before committing. Avoid accidental deletions and ensure accurate cleanup.

  5. Recursive Cleaning 🔄 Clean up subdirectories along with the main directory. Keep your entire directory structure organized.

  6. Custom Location 🗂️ Specify a custom location path for cleanup, ensuring flexibility and tailored directory cleanup.

  7. Auto Cleaning 🤖 Opt for automated cleanup without the preview step. Efficiently remove files based on your defined criteria.

Installation

Install zaplicate with npm

npm install -g zaplicate

Usage

To start the cleanup process for a specified directory, use the following command:

zaplicate clean [options]

Options:

  • --version: Show the version number of the zaplicate.

  • --help: Show help information for the zaplicate.

  • -l, --location <directory>: Location of the directory to clean. Use a valid path.

  • -r, --recursive: Perform recursive cleanup (including subdirectories).

  • -s, --minSize <size>: Filter files larger than the specified size. Size format B, KB, MB, GB, TB, e.g., "100KB"

  • -S, --maxSize <size>: Filter files smaller than the specified size. Size format B, KB, MB, GB, TB, e.g., "10MB".

  • -e, --extensions <extensions>: Filter files by specified extensions. Provide space seperated extensions , e.g., .txt .jpg .png

  • -f, --from <date>: Filter files modified from the specified date. Format: "YYYY-MM-DD".

  • -t, --to <date>: Filter files modified until the specified date. Format: "YYYY-MM-DD".

  • -a, --auto: Automatically remove files without preview.

Examples

  1. Clean duplicate file with size larger than equal to 12KB but
    lesser than equal to 10MB.
    zaplicate clean -s 12KB -S 10MB
  2. Recursively clean the directory with files with extension .txt and .jpg
    zaplicate clean -r -e .txt .jpg
  3. Clean duplicate file created after 2023-08-15
    zaplicate clean -f 2023-08-15
  4. Clean the directory at location recursively
    zaplicate clean -l "C:\Users\Desktop\source" -r

Created by Nj

Demo