2.0.2 • Published 4 months ago

code-lens-cli v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

📂 code-lens

A powerful Node.js CLI tool to search, view, edit, and delete files and folders directly from the terminal.

🚀 Features

  • 🔍 Search files or folders recursively
  • 📄 View full file content
  • ✏️ Inline file editing
  • 📝 Multi-line editing
  • ➕ Add/Remove lines
  • 📂 External editor support (nano/vim)
  • ❌ Delete files and folders
  • 🧠 Keyword search with highlights

📦 Installation

npm install -g code-lens

🛠 Usage

Check (Search File)

code-lens check

Edit File

code-lens edit

Delete File or Folder

code-lens delete

✨ Edit Modes

  • Inline Edit: Edit a single line by number.
  • Multi-line Edit: Edit multiple lines in one go.
  • Add/Remove Lines: Add or remove lines from a file.
  • External Editor: Edit in notepad,vs code,nano or vim.

📂 Example

code-lens check --file index.js
code-lens edit
code-lens delete

🧑‍💻 Author

Created by Ali Abdullah
Passionate about CLI tools and productivity ✨


Built with Node.js, Commander.js, Inquirer.js, Chalk, and fs module.