Features
- It accepts
.txtfiles and converts them into.htmlfiles. - User can specify output folder where converted
.htmlfiles will be placed - If a folder is specified for input, it will look for all
.txtfiles in the folder and subfolder(s) - An
index.htmlcontaining links to other.htmlfiles is generated
Usage:
| Option | Description |
|---|---|
| -V, --version | output the version number |
| -o, --output | specify a path to output .html files |
| -i, --input | (required) transform .txt files into .html files |
| -h, --help | display help for command |
Example:
textfiles
Silver Blaze.txt
After executing node index.js -i ./textfiles -o ./output, .txt' files will be converted to.html` files
index.html
The Naval Treaty.html
Notes:
The program doesn't catch all errors, if you encounter any error please let me know at tnguyen187@myseneca.ca or tuenguyen12329@gmail.com





Top comments (0)