This project provides a command-line interface (CLI) tool for converting Markdown files to HTML using Node.js. The tool leverages the marked
library for Markdown parsing and the commander
library for building the CLI.
- Converts Markdown files to HTML.
- Simple command-line interface.
- Provides usage information and version details.
-
Ensure you have Node.js installed.
-
Clone this repository.
-
Install the required dependencies:
npm install
To use the CLI tool, run the following command:
node converter.js <inputFilePath> <outputFilePath>
<inputFilePath>
: Path to the input Markdown file.<outputFilePath>
: Path to the output HTML file.
node converter.js example.md example.html
This command will convert the example.md
Markdown file to an example.html
HTML file.
You can view the help information and version details using the following commands:
node converter.js --help
node converter.js --version
This project is licensed under the MIT License.