1.0.9 • Published 8 months ago

@giftmk/nest_cli v1.0.9

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

šŸš€ NestCLI - The Ultimate Codebase Explorer

NestCLI Logo

NestCLI is a powerful and intuitive command-line tool that streamlines code exploration and navigation. With features like syntax highlighting, interactive search, tree visualization, and keyboard navigation, it significantly enhances your workflow, making it effortless to navigate complex projects.


✨ Features

  • šŸ“‚ Directory Tree Visualization – Navigate projects with an intuitive tree view
  • šŸ” Advanced File Search – Search file content using regex support
  • šŸŽØ Syntax Highlighting – Enhanced readability for various programming languages
  • āŒØļø Interactive Keyboard Navigation – Seamlessly browse files
  • šŸ“„ Pagination for Large Files – View content efficiently
  • āš™ļø Customizable Configuration – Save preferred settings for future use
  • šŸŽÆ File Filtering – Search by extension or name
  • šŸ”¢ Line Numbering – Improve readability and referencing

šŸ› ļø Installation

You can install NestCLI globally using either npm or Yarn.

Using npm:

npm install -g @giftmk/nest_cli

Using Yarn:

yarn global add @giftmk/nest_cli

šŸŽ® Usage

Run the following command to explore a directory:

nest_cli [options] [directory]

šŸ”§ Options

FlagDescriptionDefault
-d, --depth <level>Limit directory tree depthInfinite
-e, --extensions <ext>Filter files by extensions (comma-separated)All
-l, --line-numbersShow line numbers in file contentfalse
-s, --sizeDisplay file sizes in tree viewfalse
--hiddenInclude hidden files and directoriesfalse
-t, --tree-onlyShow only the directory structurefalse
-f, --file-onlyShow only file contents (hide tree)false
-L, --line-limit <num>Set number of lines to display per page200
-S, --search <term>Search for files by name (case-insensitive)none
-r, --regexEnable regex-based searchfalse
--syntax-highlightEnable syntax highlightingfalse
-k, --keyboard-navEnable interactive navigationfalse
--save-configSave current options as default-
--reset-configReset to default configuration-

šŸ“ Examples

šŸ“‚ Display Directory Structure

nest_cli -t

Output:

šŸ“ Project Tree:
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ core/
│   │   ā”œā”€ā”€ FileNavigator.js
│   │   └── ConfigManager.js
│   └── plugins/
│       ā”œā”€ā”€ TreePlugin.js
│       └── SearchPlugin.js
ā”œā”€ā”€ package.json
└── README.md

šŸ” Search for Files with Syntax Highlighting

nest_cli . -S "plugin" --syntax-highlight

Output:

šŸ“„ Found in src/plugins/TreePlugin.js:
export class TreePlugin extends BasePlugin {
    // Syntax-highlighted code...
}

āŒØļø Enable Interactive Navigation

nest_cli . -k

Navigation Controls:

  • n – Next file
  • p – Previous file
  • m – Mark/unmark file
  • q – Quit

āš™ļø Configuration

āœ… Save Custom Settings

nest_cli --depth 3 --line-numbers --syntax-highlight --save-config

šŸ”„ Reset to Defaults

nest_cli --reset-config

šŸ¤ Contributing

We welcome contributions! Follow these steps to get started:

  1. šŸ“ Fork the repository
  2. 🌱 Create a feature branch (git checkout -b feature/AmazingFeature)
  3. šŸ’¾ Commit your changes (git commit -m 'Add AmazingFeature')
  4. šŸ“¤ Push to the branch (git push origin feature/AmazingFeature)
  5. šŸŽÆ Open a Pull Request

Useful Links:


šŸ“œ License

NestCLI is licensed under the MIT License. See the LICENSE file for details.


šŸ“ž Need Help?

If you have any questions or need support:

  1. šŸ“š Check the documentation
  2. šŸ”Ž Search existing issues
  3. šŸ’¬ Open a new issue

šŸš€ Built with passion by Gift Mkyelu (a.k.a The Code Maestro) šŸ’»šŸ”„