A Cli tool reading an file with text and converting to an out file in html using Node.js.
Install the dependencies:
npm i
To get a list of options type "text-ssg-tool" followed by -h.
For any of the commands listed below in the help menu type in "text-ssg-tool" before the command.
-
node src/index.js --help
ornode src/index.js -h
to display the usage information -
Run
node src/index.js --version
ornode src/index.js -v
to display the tool name and version -
Run
node src/index.js -i [name of the file]
to convert file from markdown or text to html. -
Run
node src/index.js -l [language] -i [name of the file]
to convert file from markdown or text to html. -
Run
node src/index.js -i [name of the file] -l [language]
to convert file from markdown or text to html.
-
node src/index.js -i input/inputMD.md
(convert a markdown file inside input folder into html) -
node src/index.js -i input/text.txt
(convert a text file inside input folder into html) -
node src/index.js -i input/Sherlock-Holmes-Selected-Stories
(convert all files inside input folder inside Sherlock-Holmes-Selected-Stories into html) -
node src/index.js -l fr -i input/Sherlock-Holmes-Selected-Stories
(convert all files inside input folder with french language inside Sherlock-Holmes-Selected-Stories into html) -
node src/index.js -i input/Sherlock-Holmes-Selected-Stories -l fr
(convert all files inside input folder with french language inside Sherlock-Holmes-Selected-Stories into html)
https://ivan-text-ssg-tool.netlify.app/
[**MIT License**](https://choosealicense.com/licenses/mit/)