@harshakatta/termnav

中文文档
1.3.1发布于 2026/07/29ISCCommonJS零依赖近 30 天下载 7095

Interactive Terminal Directory Navigator for Windows PowerShell

原始使用文档
文档目录5 节
  1. Features
  2. Installation
  3. Usage
  4. Options:
  5. Controls:

TermNav

TermNav is a blazing fast, zero-dependency interactive terminal directory navigator for Windows PowerShell.

It provides a sleek, minimalist interactive UI with mouse support and a nested folder tree to seamlessly traverse directories directly from your terminal.

Features

  • Pro-Coder Aesthetic: Clean, minimalist UI with strict Unicode geometry, subtle cyan accents, and a persistent status bar.
  • Instant Start: "Install and go" philosophy. Drops directly into your global npm path for immediate execution without needing PowerShell profile modifications or terminal restarts.
  • Smart Viewport Scrolling: Effortlessly handles massive directories (like node_modules or root drives) by dynamically limiting rendering to your terminal's visible height.
  • Robust Error Handling: Safely handles permission-denied folders without crashing the UI.
  • Zero-Latency Auto-Updates: Runs a silent, detached background process to check for updates, keeping startup times strictly at 0ms.
  • Full Mouse Support: Navigate, expand, collapse, and select directories using just your mouse. Built with SGR mouse mode to support ultra-wide terminals.

Installation

Install the package globally via npm:

npm install -g @harshakatta/termnav

Releases are published from GitHub Actions and require an npm automation token stored in the repository secret named NODE_AUTH_TOKEN.

Note: TermNav is currently designed exclusively for Windows PowerShell. Non-Windows systems are not supported.

That's it! The installer automatically configures the tn command. You can start using it instantly.

Usage

Simply type tn in your terminal to launch the navigator.

You can also start in a specific directory:

tn C:\code\myapp

Options:

  • tn [directory] — Start in the specified directory
  • tn --version or tn -v — Show version number
  • tn --help or tn -h — Show help message

Controls:

  • Use Up/Down arrow keys to move through the list.
  • Use Left/Right arrow keys to expand or collapse folders.
  • Press / to open fast file search, type to filter, then use Enter to open a directory.
  • Press ~ (Tilde) to instantly jump back to your Home directory.
  • Press Ctrl+R to refresh the current directory (clears stale cache).
  • Use the Mouse to click items and expand folders. Click outside the list to quit.
  • Press Enter to open a directory or select a file path.
  • Press q, Q, or Escape to exit cleanly without changing directories.

版本与发布记录

@harshakatta/termnav 共发布 30 个版本,首次发布于 2026/06/02;过去 12 个月发布了 30 个版本。

版本发布日期距今
1.3.1latest2026/07/293 个月前
1.3.02026/07/293 个月前
1.2.72026/07/014 个月前
1.2.62026/06/125 个月前
1.2.52026/06/125 个月前
1.2.42026/06/125 个月前

关于 @harshakatta/termnav 的常见问题

@harshakatta/termnav 是什么?

Interactive Terminal Directory Navigator for Windows PowerShell

如何安装 @harshakatta/termnav?

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

@harshakatta/termnav 支持 TypeScript 吗?

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

@harshakatta/termnav 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@harshakatta/termnav 需要什么版本的 Node.js?

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

@harshakatta/termnav 可以商用吗?

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

@harshakatta/termnav 的下载量有多少?

根据 npm 官方下载统计,@harshakatta/termnav 在 2026/10/18 – 2026/11/16 这 30 天内被下载 7,095 次,日均约 237 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@harshakatta/termnav 还在维护吗?

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