{"repo":"duniul/clean-modules","free":true,"listed":false,"github":"https://github.com/duniul/clean-modules","clone":"git clone https://github.com/duniul/clean-modules.git","description":"🧹 Save space by removing redundant files from your node_modules.","language":"TypeScript","stars":129,"topics":["node","node-modules","npm","yarn","cli-tool","ci","pnpm"],"license":"ISC","category":"cli-tools","readme_excerpt":"clean-modules 🧹 Saves space by removing redundant files from your node modules . Useful for CI caches or reducing the size of serverless functions. - Fully customizable through glob patterns, either via CLI args or config file. - Pure Node.js, no separate binary or runtime needed. - Fast. Table of contents Click to open - Installation - Quick start - Commands - [ clean-modules [clean] ](#clean-modules-clean) - Positionals - Options - clean-modules analyze - Positionals - Options - Glob patterns and configuration file - Example configuration file - Default globs - Common extra inclusions - Common extra exclusions - Programmatic usage Installation Project installation is optional. You can also install it globally, or run it directly via npx clean-modules or equivalent. Quick start Run it in your project root: Accept the confirmation prompt, and you'll see output like: To include/exclude extra files or set other options, see the clean command docs below. Commands clean-modules [clean] Default command. Cleans up your node modules based on a set of likely safe glob patterns. Positionals Glob patterns can be passed as positional arguments to include or exclude extra files. See the Glob patterns section for how the globs are parsed. Options Flag Description -------------------------- ------------------------------------------------------------------------- --directory , -D Path to your node modules directory. Default: $PWD/node modules --glob-file , -f Path to a file with custom gl","default_branch":null,"files":null,"tree":[],"storefront":"/r/duniul","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/duniul/clean-modules/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}