#scripting #unit-conversion #language #cli

bin+lib anything

Calculate everything and nothing with perfect precision

5 releases

0.1.5 Mar 22, 2023
0.1.4 Jan 2, 2023
0.1.3 Jan 2, 2022
0.1.2 Jan 2, 2022
0.1.0 Jan 2, 2022

#435 in Command-line interface

MIT/Apache

190KB
5.5K SLoC

anything

github crates.io docs.rs build status

Calculate everything and nothing with perfect precision.

Anything provides the any binary, which is a small flexible program intended to do calculations and query for numerical facts.

You can install the any command by using:

cargo install anything

The any command can do a couple of really interesting things:

  • Unit conversions!
    • any 3dl to m^3 gives us 0.0003.
    • any 1000Gbtu to MWh gives us 293055.555555555555… hr⋅MW.
  • Fact queries!
    • any population finland / population world gives us 0.000710822459005.
  • Basic math!
    • any 32500 / round(population finland) gives us 0.00586566578555.
  • Unit-aware calculations!
    • any 3N / 10kg gives us 0.3 m/.
  • And a bit more...

You can think of any is a much smaller and local wolfram engine, without the hassle of having to go online for your answers.

Dependencies

~24–36MB
~481K SLoC