dnode

command module
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 3 Imported by: 0

README

dnode

Go Reference

dnode is a CLI tool to search and delete any node_module folders.

1. Instillation

There are three ways to install the binary

1.1. Via Go CLI

Open your terminal and type in

go install github.com/akshaybabloo/dnode@latest
1.2. Build it yourself
git clone github.com/akshaybabloo/dnode.git
cd dnode
go install
1.3. Download prebuilt binaries

You can download OS dependent binary from the releases page.

2. Usage

There are two commands available

2.1. list

Lists all node_module folders in the current directory tree recursively.

Example

> dnode list
                   PATH                  | DIRECTORY SIZE
-----------------------------------------+-----------------
  ./gollahalli.com/node_modules          |     33 MB
  ./keertana.gollahalli.com/node_modules |     34 MB
-----------------------------------------+-----------------
                  TOTAL                  |     67 MB
-----------------------------------------+-----------------
2.2. delete

Deletes all node_module folders in the current directory tree recursively.

> dnode delete
Deleted ./gollahalli.com/node_modules
Deleted ./keertana.gollahalli.com/node_modules
67 MB freed

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL