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

mathcli-pro

v4.1.11

Published

Modern CLI calculator for developers, engineers, and power users. Features advanced math expressions, unit conversions, currency rates, batch calculations, ASCII charts, and persistent history.

Readme

MathCLI Pro v4.1.5

Build Status npm version Version GitHub stars License: MIT

Modern CLI calculator for developers, engineers, and power users.


Features

  • Advanced math expressions (mathjs)
  • Unit conversions (length, mass, volume, temperature, speed, etc.)
  • Math optimization (min/max) with ASCII chart
  • Currency rates (fiat & crypto)
  • Batch calculations from CSV/JSON
  • CLI ASCII charts
  • Persistent history (last 20 operations)
  • Script automation
  • Colorized output
  • Extensible catalog

Usage Examples

# Math
node index.js calculate "2+2*5"
node index.js calculate "sin(pi/2) + sqrt(16)"

# Conversion
node index.js convert "100 cm to m"
node index.js convert "5 kg to lb"

# Batch
node index.js calculate-from-file test.csv "sum(col1)" --output=output.json

# Currency
node index.js fetch-currency USD exchangerate.host
node index.js fetch-currency BTC coingecko

# Script
node index.js run-script script.txt

# Chart
node index.js plot-chart 3 1 4 1 5 9 2 6

# History
node index.js history

# Help
node index.js help

Roadmap

Delivered

  • Persistent calculation history
  • Real unit conversions
  • Math optimization (min/max, ASCII chart)
  • Professional CLI output (color, ASCII graphics)
  • Input validation & feedback
  • Automated testing & CI
  • History export (CSV/JSON)
  • Import/export (CSV, batch)
  • User-defined functions (plugins/scripts)
  • Advanced history/charts (CLI export)
  • Batch mode & automation
  • Advanced currency calculator
  • Interactive documentation & real examples

In Progress (Next Release)

  • Full Excel import/export (xlsx)
  • Batch mode extended (summary, error reporting)
  • Export chart as image (png/svg)
  • Advanced interactive help & real-world examples
  • Plugin system for external extensions

Planned (Long Term)

  • CLI auto-complete & suggestions
  • Enhanced error handling & reporting
  • Advanced currency/crypto analytics
  • Customizable themes/output
  • Cloud sync & multi-device history
  • Web dashboard companion

CLI Help & Usage

  • Calculate: node index.js calculate "2+2*5"
  • Convert: node index.js convert "100 cm to m"
  • History: node index.js history
  • Optimize: node index.js optimize "minimize x^2+3x-5"
  • Batch: node index.js calculate-from-file data.csv "sum(col1)" --output=results.json
  • Currency: node index.js fetch-currency USD exchangerate.host
  • Script: node index.js run-script script.txt
  • Chart: node index.js plot-chart 1 2 3 4 5 6
  • Help: node index.js help

Project Structure

├── package.json       # npm config & dependencies
├── bin/               # npm bin entry (mathcli-pro)
├── index.js           # CLI entry point
├── commands/          # CLI commands (calculate, convert, etc.)
├── data/              # Persistent data (history, etc.)
├── config/            # Global config
└── tests/             # Unit/integration tests

Contributing

Contributions and issues are welcome!

  1. Fork the repo
  2. Create a branch (feature/your-feature)
  3. Commit your changes
  4. Open a Pull Request
  5. Discuss and review

License

MIT — see LICENSE


Contact & Support