New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nav-cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nav-cli

Better CLI navigation

latest
npmnpm
Version
2.0.3
Version published
Maintainers
1
Created
Source

nav-cli 🚀 License: MIT

Nav is an open-source Node.js CLI tool designed to improve productivity and developer experience by simplifying file system navigation. Nav improves on the standard command line navigation by simplifying it into a seamless, interactive experience. As a developer myself, this tool has become a critical part of my workflow.

  • NPM: nav-cli
  • GitHub: nav-cli
  • Product Hunt: nav-cli

✨ Features

  • Interactive Navigation: Use arrow keys to browse directories and files. Type to filter in the current working directory for easy fuzzy finding.
  • Quick Editor Access: Open files or directories directly in your favorite editor (VS Code, IntelliJ, or Notepad).
  • Clipboard Integration: Automatically generate and copy cd commands for seamless navigation across sessions.
  • Search Functionality: Filter files and directories in real-time as you type.
  • Cross-Platform: Works on Windows, macOS, and Linux in any shell (hopefully!).
  • Easy Install, No Setup: One command download and works out of the box.

🎥 Demo (V1)

Demo Screenshot Demo GIF

📦 Installation

npm i -g nav-cli

🛠️ Requirements

  • Node.js (latest LTS recommended)
  • Editor Support: VS Code, IntelliJ, or Notepad for file opening features.

🚀 Usage

After installing globally via npm, simply run the nav command in your terminal. Here's what you can do:

  • ✅ Stay Here: Copies the cd command for the current directory to your clipboard.
  • 🔙 Go Back: Navigate to the parent directory and continue exploring.
  • ↗️ Open in Editor: Open the current directory or a selected file in your preferred editor.
  • 📁 Directory Navigation: Select a directory to navigate into it. Type to filter down to what you're searching for.
  • 📄 File Opening: Select a file to open it in your editor.

Hotkeys

  • Ctrl + o: Open cwd in VS Code.
  • Left Arrow: Go back to the parent directory.
  • Escape: Exit the application.

🐛 Feature Requests & Bug Reports

We welcome contributions and feedback!

🔮 Future Plans

  • Enhanced UX: Replace clipboard-based navigation with direct shell integration.
  • Custom Editor Support: Allow users to configure their preferred editors.
  • Favorites: Allow users to add favorite directories as starting points to navigating.
  • More Hotkeys: Add shortcuts for faster navigation and file selection.

🤝 Contributing

Contributions are welcome!

📜 License

This project is licensed under the MIT License.

Product Hunt Badge

Keywords

nav

FAQs

Package last updated on 21 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts