npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@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

npm version License: ISC Node Version


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/prix

Or install locally in your project:

npm install @spextion/prix

After 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 aliases

Project 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 types

TODO Finder

prix todo         # Find all TODO, FIXME, HACK comments
prix todo --type TODO,FIXME  # Search for specific comment types

File 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 file

History & 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 deleted

Usage Examples

Managing Aliases

Save commonly used commands:

prix a -s
# Enter alias name: dev
# Enter command: npm run dev

Run a saved alias:

prix a
# Select from your saved aliases interactively

Finding TODOs

prix todo
# Scans your project for TODO, FIXME, HACK, BUG, and XXX comments

Counting Code

prix count
# Shows lines of code breakdown by file type

Generating Files

prix gitignore node
# Generates a Node.js .gitignore file

prix license MIT
# Generates an MIT license file

Configuration

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 install

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