letsclean

中文文档
0.1.0发布于 2026/11/04MITES Module零依赖

OmniDiskSweeper-style terminal disk usage explorer

原始使用文档
文档目录4 节
  1. Install
  2. Use
  3. Keys
  4. Develop

letsclean

OmniDiskSweeper-style disk explorer for the terminal. Sizes stream in while you navigate, so you can start deleting before the scan finishes.

Directory reads use readdir plus lstat. On macOS, a local native addon (getattrlistbulk: name, type, and allocated size in one syscall per batch) is used automatically if you have built it.

Install

npm install -g letsclean

Requires Node.js 22.18 or newer. Nothing is compiled on install.

Use

letsclean            # scan the current directory
letsclean ~          # scan your home folder
letsclean /Users     # scan a chosen folder
letsclean --nodejs ~ # find node_modules and build caches

Keys

KeyAction
↑ ↓ j kmove
→ l enteropen directory
← h backspaceback
ctrl-oreveal in Finder
ctrl-dmove to Trash
ctrl-ycopy path
.toggle hidden files
/filter the column
?help
qquit

--nodejs lists directories you can regenerate (node_modules, .next, .nuxt, .turbo, .cache, and similar) and moves the ones you pick to Trash. Nothing is unlinked.

Develop

npm install
npm start -- ~

npm start runs the TypeScript directly via Node's type stripper. npm run build compiles dist/.

The published package is JS only. To use the faster macOS scanner locally (needs Xcode command line tools):

npm run rebuild

版本与发布记录

letsclean 共发布 2 个版本,首次发布于 2026/11/04;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.1.0latest2026/11/041 天前
0.0.0-stage2026/11/041 天前

关于 letsclean 的常见问题

letsclean 是什么?

OmniDiskSweeper-style terminal disk usage explorer

如何安装 letsclean?

在项目目录运行 npm install letsclean,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 letsclean,可以用 npx letsclean 直接运行。

letsclean 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/letsclean 是否存在。

letsclean 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

letsclean 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

letsclean 可以商用吗?

letsclean 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

letsclean 还在维护吗?

最新版本 0.1.0 发布于 2026/11/04(1 天前);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。