Skip to content

BaseMax/markdown-to-html-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML Converter

A simple CLI tool for converting Markdown content to HTML, built with Node.js.

Installation

  1. Clone the repository:

    git clone https://github.com/BaseMax/markdown-to-html-converter
    cd markdown-to-html-converter
  2. Install dependencies:

    npm install
  3. Make the CLI executable:

    chmod +x index.js
  4. Link the tool globally:

    npm link

Usage

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

Examples

  1. Convert a Markdown file to HTML and save it to an output file:

    markdown-to-html -i input.md -o output.html
  2. Convert Markdown from standard input:

    cat input.md | markdown-to-html
  3. Print the converted HTML to the console:

    markdown-to-html -i input.md

License

MIT

(c) Copyright 2025, Max Base

Releases

No releases published

Packages

No packages published