code-lens-cli

2.0.2 • Public • Published

📂 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.

Package Sidebar

Install

npm i code-lens-cli

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

16.9 kB

Total Files

4

Last publish

Collaborators

  • zedento