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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@idirdev/dockclean

v1.0.0

Published

Clean unused Docker resources

Downloads

23

Readme

dockclean

Docker system cleanup utility. Scan and remove dangling images, stopped containers, unused volumes, unused networks, and build cache — with detailed disk space reporting.


English | Français


English

Features

  • Selective cleanup — target specific resource types or clean everything at once
  • Dry-run mode — preview what would be removed before committing
  • Disk usage reporting — before/after comparison with space reclaimed per type
  • Force mode — skip confirmation prompts for scripting and automation
  • JSON output — machine-readable output for CI/CD pipelines
  • Tabular display — clear, color-coded tables for each resource type

Installation

npm install -g dockclean

Usage

# Clean all unused Docker resources
dockclean --all

# Preview what would be cleaned (no deletion)
dockclean --all --dry-run

# Clean specific resource types
dockclean --images --containers
dockclean --volumes --networks
dockclean --buildcache

# Skip confirmation prompt
dockclean --all --force

# Output as JSON
dockclean --all --json

Options

| Flag | Short | Description | |------|-------|-------------| | --all | -a | Clean all resource types | | --images | -i | Remove dangling images | | --containers | -c | Remove stopped containers | | --volumes | -V | Remove unused volumes | | --networks | -n | Remove unused networks | | --buildcache | -b | Remove build cache | | --dry-run | -d | Preview mode, no deletion | | --force | -f | Skip confirmation prompt | | --json | | Output results as JSON | | --version | -v | Show version | | --help | -h | Show help |

Programmatic Usage

const { runCleanup } = require('dockclean');

await runCleanup({
  images: true,
  containers: true,
  volumes: false,
  networks: false,
  buildcache: false,
  dryRun: true,
  force: true,
  json: false,
});

Requirements

  • Node.js >= 14
  • Docker installed and running

Français

Fonctionnalités

  • Nettoyage sélectif — ciblez des types de ressources spécifiques ou nettoyez tout d'un coup
  • Mode simulation — prévisualisez ce qui serait supprimé avant d'agir
  • Rapport d'utilisation disque — comparaison avant/après avec l'espace récupéré par type
  • Mode forcé — supprime la demande de confirmation pour le scripting et l'automatisation
  • Sortie JSON — format lisible par machine pour les pipelines CI/CD
  • Affichage tabulaire — tableaux clairs et colorés pour chaque type de ressource

Installation

npm install -g dockclean

Utilisation

# Nettoyer toutes les ressources Docker inutilisées
dockclean --all

# Prévisualiser ce qui serait nettoyé (aucune suppression)
dockclean --all --dry-run

# Nettoyer des types de ressources spécifiques
dockclean --images --containers
dockclean --volumes --networks
dockclean --buildcache

# Passer la confirmation
dockclean --all --force

# Sortie en JSON
dockclean --all --json

Options

| Drapeau | Court | Description | |---------|-------|-------------| | --all | -a | Nettoyer tous les types de ressources | | --images | -i | Supprimer les images pendantes | | --containers | -c | Supprimer les conteneurs arrêtés | | --volumes | -V | Supprimer les volumes inutilisés | | --networks | -n | Supprimer les réseaux inutilisés | | --buildcache | -b | Supprimer le cache de build | | --dry-run | -d | Mode simulation, aucune suppression | | --force | -f | Passer la confirmation | | --json | | Sortie en format JSON | | --version | -v | Afficher la version | | --help | -h | Afficher l'aide |

Utilisation programmatique

const { runCleanup } = require('dockclean');

await runCleanup({
  images: true,
  containers: true,
  volumes: false,
  networks: false,
  buildcache: false,
  dryRun: true,
  force: true,
  json: false,
});

Prérequis

  • Node.js >= 14
  • Docker installé et en cours d'exécution

License

MIT — idirdev