- This is a command-line tool process input txt files output html files.
- Allow the user to specify either a file or folder of files as input
- User specified output path (version 0.1.1)
- Set title from input file content (version 0.1.2)
In command line:
Make sure python3 is installed:
python3 --version
Clone the Repo
git clone https://github.com/mingming-ma/txt2html.git
cd txt2html
Make the tool executable
chmod +x txt2html.py
To generate html from a txt file:
./txt2html.py input_file.txt
To generate html from a folder which has txt files:
./txt2html.py folder-name
Command | Description |
---|---|
-h, --help | Displays the help message |
-v, --version | Displays the version of the tool |
-o, --output | Specify the output directory. Existing output folder will first be removed. If not specified, "./txt2html" will be used. |