#stdin #calculate #statistics #numbers #tiny #tool #command-line-tool

app funst

A tiny command-line tool to calculate fundamental statistics of numbers given via stdin

2 releases

0.1.1 Dec 25, 2020
0.1.0 Oct 28, 2020

#63 in #calculate

MIT license

7KB
59 lines

funst

funst Documentation Actions Status License: MIT

funst is a tiny command-line tool to calculate fundamental statistics of numbers given via the standard input.

$ seq 1 100 | funst
{
  "count": 100,
  "mean": 50.5,
  "stddev": 28.86607004772212,
  "min": 1.0,
  "median": 50.5,
  "max": 100.0
}

Installation

Precompiled binaries

Precompiled binaries for Linux are available in the releases page.

$ curl -L https://github.com/sile/funst/releases/download/${VERSION}/funst-${VERSION}.linux-amd64 -o funst
$ chmod +x funst
$ ./funst -h

Using Cargo

If you have already installed Cargo, you can install funst by executing the following command:

$ cargo install funst

Dependencies

~5MB
~92K SLoC