@spextion/prix
v1.1.1
Published
A powerful CLI toolkit for developers - streamline your workflow with command aliases, project analysis, and productivity utilities
Readme
██████╗ ██████╗ ██╗██╗ ██╗
██╔══██╗██╔══██╗██║╚██╗██╔╝
██████╔╝██████╔╝██║ ╚███╔╝
██╔═══╝ ██╔══██╗██║ ██╔██╗
██║ ██║ ██║██║██╔╝ ██╗
╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝A powerful CLI toolkit for developers
Streamline your workflow | Boost productivity | Automate common tasks
A powerful and intuitive command-line interface tool designed to streamline your development workflow with a collection of useful utilities.
Features
- Command Aliases: Save and manage frequently used commands
- Project Analysis: Analyze project structure and dependencies
- Code Metrics: Count lines of code across your project
- TODO Finder: Find all TODO, FIXME, HACK comments in your codebase
- File Generators: Generate .gitignore files, licenses, README templates
- History Management: Search and execute commands from your shell history
- Code Snippets: Create and manage code snippets
- Project Cleanup: Clean up build and cache directories
Installation
Install globally to use anywhere:
npm install -g @spextion/prixOr install locally in your project:
npm install @spextion/prixAfter installation, you can use the prix command from your terminal.
Commands
Alias Management
Manage command aliases for quick access to frequently used commands.
prix alias # List and select from saved aliases (shorthand: prix a)
prix alias -s # Save a new alias
prix alias -c <name> # Delete a specific alias
prix alias -c # Clear all aliasesProject Analysis
prix analyze # Analyze project structure and dependencies
prix count # Count lines of code in your project
prix count --ext js,ts # Count only specific file typesTODO Finder
prix todo # Find all TODO, FIXME, HACK comments
prix todo --type TODO,FIXME # Search for specific comment typesFile Generators
prix gitignore # Generate .gitignore from templates
prix license # Generate LICENSE file (MIT, Apache-2.0, GPL-3.0)
prix readme # Generate README template
prix snippet # Create a code snippet fileHistory & Utilities
prix history # Show command history
prix history -l 100 # Show last 100 commands
prix history -s "npm" # Search for commands containing "npm"
prix history -i # Interactive mode to select and execute
prix list # List all available commands
prix cleanup # Clean up build/cache directories
prix cleanup --dry-run # Preview what would be deletedUsage Examples
Managing Aliases
Save commonly used commands:
prix a -s
# Enter alias name: dev
# Enter command: npm run devRun a saved alias:
prix a
# Select from your saved aliases interactivelyFinding TODOs
prix todo
# Scans your project for TODO, FIXME, HACK, BUG, and XXX commentsCounting Code
prix count
# Shows lines of code breakdown by file typeGenerating Files
prix gitignore node
# Generates a Node.js .gitignore file
prix license MIT
# Generates an MIT license fileConfiguration
Prix stores configuration files in your project root:
.prix_aliases.json- Saved command aliases.prix_history.json- Command history (if applicable)
Requirements
- Node.js 14.x or higher
- npm or yarn
Development
Clone the repository:
git clone <repository-url>
cd cli
npm installRun locally:
node index.js <command>Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
ISC
Author
nthnpy3
Support
For issues and feature requests, please create an issue on GitHub.
