1.0.2 • Published 7 years ago
htmlify-csv v1.0.2
htmlify-csv.js
This NodeJs module converts a CSV file into an HTML table very easily!
The HTML table generated allows you to filter the columns and sort them.

Install
Clone this repository:
git clone git@github.com:shevabam/htmlify-csv.git
cd htmlify-csvThen run:
npm installUsage
Converts example.csv into HTML file, located in datas folder:
node htmlify-csv convert example.csvAdd some options to define the delimiter and to open the generated HTML file in your Web browser:
node htmlify-csv convert example.csv --delimiter=";" --showConverts datas/example.csv to datas/example.html width ";" delimiter, and open output file in your Web browser:
node htmlify-csv convert "datas/example.csv" --delimiter=";" --output="datas/example.html" --showOptions
To view all available options, use:
node htmlify-csv --help| Param | Description | Default | Example |
|---|---|---|---|
| --delimiter | CSV delimiter | , | --delimiter=";" |
| --output | Output filename | datas/output.html | --output="file.html" |
| --show | Open HTML output file in browser | false | |
| --port | Server port number | 8090 | --port=1337 |