A simple CLI tool for converting Markdown content to HTML, built with Node.js.
-
Clone the repository:
git clone https://github.com/BaseMax/markdown-to-html-converter cd markdown-to-html-converter
-
Install dependencies:
npm install
-
Make the CLI executable:
chmod +x index.js
-
Link the tool globally:
npm link
Usage:
markdown-to-html [options]
Options:
-i, --input <file> Path to the input Markdown file (optional if using stdin)
-o, --output <file> Path to the output HTML file (optional)
-h, --help Show this help message
Examples:
markdown-to-html -i input.md -o output.html
cat input.md | markdown-to-html
-
Convert a Markdown file to HTML and save it to an output file:
markdown-to-html -i input.md -o output.html
-
Convert Markdown from standard input:
cat input.md | markdown-to-html
-
Print the converted HTML to the console:
markdown-to-html -i input.md
MIT
(c) Copyright 2025, Max Base