You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
# csv2html
2
2
3
3
This command-line utility converts [CSV files](http://en.wikipedia.org/wiki/Comma-separated_values) to HTML tables and complete HTML documents.
4
-
It requires Rust 1.74 or later to build.
5
-
By default, it uses the first row of the CSV file as the [header](https://developer.mozilla.org/en/docs/Web/HTML/Element/th) of the HTML table.
4
+
It can use the first row of the CSV file as the [header](https://developer.mozilla.org/en/docs/Web/HTML/Element/th) of the table, and does so by default.
6
5
7
6
The original Python version of csv2html is preserved in the branch [`python`](https://github.com/dbohdan/csv2html/tree/python).
8
7
@@ -12,6 +11,8 @@ The original Python version of csv2html is preserved in the branch [`python`](ht
12
11
Prebuilt Linux and Windows binaries are available.
13
12
They are attached to releases on the ["Releases"](https://github.com/dbohdan/csv2html/releases) page.
14
13
14
+
csv2html requires Rust 1.74 or later to build.
15
+
15
16
### Installing with Cargo
16
17
17
18
```sh
@@ -23,7 +24,7 @@ cargo install csv2html
23
24
Follow the instructions to build a static Linux binary of csv2html from the source code on recent Debian and Ubuntu.
24
25
25
26
1\. Install [Rustup](https://rustup.rs/).
26
-
Through Rustup add the stable musl libc target for your CPU.
27
+
Through Rustup, add the stable musl libc target for your CPU.
27
28
28
29
```sh
29
30
rustup target add x86_64-unknown-linux-musl
@@ -51,7 +52,7 @@ just release-linux
51
52
Follow the instructions to build a 32-bit Windows binary of csv2html on recent Debian and Ubuntu.
52
53
53
54
1\. Install [Rustup](https://rustup.rs/).
54
-
Through Rustup add the i686 GNU ABI Windows target.
55
+
Through Rustup, add the i686 GNU ABI Windows target.
55
56
56
57
```sh
57
58
rustup target add i686-pc-windows-gnu
@@ -112,14 +113,14 @@ up to the user to ensure the result is valid HTML
112
113
113
114
## Use examples
114
115
115
-
The following command reads the data in`test/test.csv` and writes an HTML table that corresponds to the data to `test.html`:
116
+
This command reads data from`test/test.csv` and writes an HTML table to `test.html`:
116
117
117
118
```sh
118
119
csv2html -o test.html tests/test.csv
119
120
```
120
121
121
122
The following command takes semicolon-delimited data from `pub.csv`, starting with row 267.
122
-
The first column of the table is replaced with the row number starting at 1 (except in the header row, which is untouched).
123
+
It replaces the first column of the table with the row number starting at 1 (except in the header row, which is not changed).
0 commit comments