# Install clean-modules with npm

Saves space by removing redundant files from your node_modules. Useful for CI caches or reducing the size of serverless functions. Version 4.0.0 via npm; verified 2026-05-23.

## Install

```sh
sudo av install npm:clean-modules
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g clean-modules
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:clean-modules
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/clean-modules>
- **Version:** 4.0.0
- **Source summary:** Saves space by removing redundant files from your node_modules. Useful for CI caches or reducing the size of serverless functions.
- **Homepage:** <https://github.com/duniul/clean-modules#readme>
- **Repository:** <https://github.com/duniul/clean-modules>
- **Upstream docs:** <https://github.com/duniul/clean-modules#readme>
- **License:** ISC
- **Source archive:** <https://registry.npmjs.org/clean-modules/-/clean-modules-4.0.0.tgz>
- **Issue tracker:** <https://github.com/duniul/clean-modules/issues>
- **Published:** 2026-05-23T15:04:10.641Z
- **Last updated:** 2026-05-23T15:04:10.641Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- clean-modules (cli)
- clean-modules (alias)

## Dependencies

- picomatch

## Build dependencies

- @changesets/cli
- @types/node
- @types/picomatch
- changesets-changelog-clean
- memfs
- oxfmt
- oxlint
- oxlint-tsgolint
- tsdown
- typescript
- vitest

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 4.0.0
- Package-manager updated: 2026-05-23
- Local data: ok
- Upstream repository: https://github.com/duniul/clean-modules
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for clean-modules. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.0
- **Version Count:** 19
- **Maintainers:** duniul
- **Publisher:** GitHub Actions
- **Engines:** Node: >=22
- **Integrity:** sha512-JPzmJ1BTTi8xRS77r2hpXoQH06O2BsCdv9SlIaVUKkuYzkwnb51oIHyd5WvpaAanDFMoEp0LkgHPxTI4HU5ZEA==
- **Shasum:** ad89101a64c2218026cc2ab71c714dfcb9355557
- **Unpacked Size:** 43,130
- **File Count:** 0
- **Created At:** 2020-12-07T23:23:27.187Z
- **Latest Published At:** 2026-05-23T15:04:10.641Z
- **Modified At:** 2026-05-23T15:04:10.917Z


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched curated package taxonomy and local package facts.
- [npkill](https://pkg.so/npm/npkill/) - Both packages touch the same language runtime or ecosystem. Shared terms: clean, cleanup, cli, modules, node.
- [modclean](https://pkg.so/npm/modclean/) - Both packages touch the same language runtime or ecosystem. Shared terms: clean, cleanup, cli, files, modules.
- [node-prune](https://pkg.so/npm/node-prune/) - Both packages touch the same language runtime or ecosystem. Shared terms: cleanup, cli, files, modules, node.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
