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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sci-calc-pro

v1.0.0

Published

Professional scientific calculator CLI for Node.js

Readme

sci-calc-pro

Professional scientific calculator CLI for Node.js. Zero dependencies, pure JavaScript.

Install

npm install -g sci-calc-pro

Or use directly in a project:

npx sci-calc-pro "sin(45)"

Usage

One-liner

sci-calc "2^10"
sci-calc "sin(45) + cos(60)"
sci-calc "sqrt(144)"
sci-calc "fact(10)"
sci-calc "log(1000)"
sci-calc "C(10,3)"

Interactive REPL

sci-calc --repl
sci-calc
sci> 2 + 3
  = 5
sci> sin(45)
  = 0.707106781187
sci> set x = 10
sci> x^2
  = 100
sci> help
sci> exit

Functions

| Category | Functions | | -------------- | --------------------------------------------------- | | Basic | sqrt, cbrt, abs, pow, mod | | Trigonometric | sin, cos, tan, asin, acos, atan, atan2 | | Hyperbolic | sinh, cosh, tanh, asinh, acosh, atanh | | Logarithmic | log (base 10), ln (natural), log2, exp, exp2, exp10 | | Combinatorics | fact/factorial, perm/P, comb/C | | Rounding | round, floor, ceil, trunc | | Aggregation | max, min |

Constants

  • pi - 3.14159265358979...
  • e - 2.71828182845904...
  • phi - Golden ratio (1.61803398874989...)

REPL Commands

| Command | Description | | ----------------- | ------------------------------ | | help | Show help | | list | List all functions | | vars | Show stored variables | | set x = expr | Store a variable | | history | Show calculation history | | unit deg/rad | Set angle unit | | ms expr | Store to memory | | mr | Recall memory | | mc | Clear memory | | clear | Clear screen | | exit | Quit |

Flags

sci-calc <expression>        Evaluate expression
sci-calc --repl              Start interactive mode
sci-calc --help              Show help
sci-calc --version           Show version
sci-calc --list              List functions
sci-calc --unit <deg|rad>    Set angle unit for evaluation

Examples

# Trig in degrees
sci-calc "sin(30)"
sci-calc "atan2(1,1)"

# Factorials and combinations
sci-calc "fact(20)"
sci-calc "C(52,5)"          # 5-card poker hands

# Complex expressions
sci-calc "sqrt(e^2 + pi^2)"
sci-calc "log(1000) + ln(e^5)"

# Powers and roots
sci-calc "2^128"
sci-calc "cbrt(27)"

# With angle unit
sci-calc --unit rad "sin(1.5708)"

License

MIT