Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
solaoi committed Mar 31, 2022
1 parent fb510d3 commit a4d3903
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Colc
# Colc (`Co`lumn x Ca`lc`ulation)

Colc is a CommandLineTool to take statistics from a column of a file.

Expand Down Expand Up @@ -61,7 +61,7 @@ you can download a binary release
```sh
# Install with wget or curl
## set the latest version on releases.
VERSION=v1.0.23
VERSION=v1.0.24
## case you use wget
wget https://github.com/solaoi/colc/releases/download/$VERSION/colc_linux_amd64.tar.gz
## case you use curl
Expand All @@ -74,7 +74,7 @@ mv ./colc /usr/local/bin/

### Example

There is a `tests.csv`.
There is a `some.csv`.

```
Student,Reading,Writing,Math,Science,Social Studies
Expand Down
6 changes: 3 additions & 3 deletions colc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { runner } from "./lib/common.ts";
import { parse } from "https://deno.land/std@0.66.0/flags/mod.ts";

const colcVersion = "v1.0.23";
const colcVersion = "v1.0.24";
const colcDescription =
`Complete documentation is available at https://github.com/solaoi/colc
Expand Down Expand Up @@ -237,8 +237,8 @@ if (binSize === null) {
"kurtosis": comma(kurtosis),
};
const stds = {
"stddev(σ)": comma(stddev),
"stderr": comma(stderr),
"SD(σ)": comma(stddev),
"SE": comma(stderr),
"CV(σ/mean)": comma(cv),
"variance(σ^2)": comma(variance),
"mean±σ(≒68%)": `${comma(sigmaMinus1)}, ${comma(sigmaPlus1)}`,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const formatter = (keySpace: number, valueSpace: number, inverse = false) => {
},
showHeader: (headerName: string) => {
const hr = "-".repeat(keySpace + valueSpace + 2);
console.log(`${hr}\n${headerName}\n${hr}`);
console.log(`${hr}\n${chalk.green(headerName)}\n${hr}`);
},
println: (key: string, value: string, rank?: number) => {
inverse = !inverse;
Expand Down

0 comments on commit a4d3903

Please sign in to comment.