1.11.0 • Published 7 months ago

node-modules-cleanup v1.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Logo of node-modules-cleanup!



Frame 22222

🚀 Usage

npx node-modules-cleanup@latest <path>

📚 Examples

# Find all node_modules in the current directory
npx node-modules-cleanup@latest ./

# Find all node_modules in a specific directory
npx node-modules-cleanup@latest ~/Desktop/projects

# Skip confirmation before deleting folders
npx node-modules-cleanup@latest ./ --skip-confirmation

# Dry run of the cleanup process, no folders are deleted
npx node-modules-cleanup@latest ./ --dry

📝 Arguments

ArgumentDescriptionRequired
<path>The path to search for node_modules foldersYes
--skip-confirmationSkip confirmation before deleting foldersNo
--dryDry run of the cleanup process, no folders will be deletedNo
--helpShow help informationNo
--versionShow package versionNo

💻 Development

Install Bun

This project is built with Bun, to install it run the following command:

curl -fsSL https://bun.sh/install | bash

Install dependencies

To install the dependencies, run the following command:

bun install

Generate mocked node_modules folders

For easier development a script is available that will generate multiple mocked node_modules folders inside of the ./mock folder.

bun run create-mocks

The number of folders that are generated is randomized, as well as their names and sizes.

Run the script

The following command will then execute the script.

bun run dev ./mock              # Or any other path

Useful commands during development

bun run dev                     # Runs the script
bun run test                    # Runs the test suite
bun run unused-code-check       # Check for unused code
bun run lint                    # Run ESLint
bun run tsc                     # Runs TypeScript checks
bun run build                   # Builds the package
1.2.0

7 months ago

1.8.0

7 months ago

1.6.0

7 months ago

1.4.0

7 months ago

1.11.0

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.9.0

7 months ago

1.7.0

7 months ago

1.5.0

7 months ago

1.3.0

7 months ago

1.1.2

7 months ago

1.10.0

7 months ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.45

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago