https://github.com/basemax/markdown-to-html-converter
A simple CLI tool for converting Markdown content to HTML, built with Node.js.
https://github.com/basemax/markdown-to-html-converter
javascript js markdown markdown-converter markdown-lang markdown-language markdown-parser markdown-previewer markdown-to-html markdown-viewer md nodejs
Last synced: 3 months ago
JSON representation
A simple CLI tool for converting Markdown content to HTML, built with Node.js.
- Host: GitHub
- URL: https://github.com/basemax/markdown-to-html-converter
- Owner: BaseMax
- License: mit
- Created: 2025-01-10T22:27:39.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-11T23:27:15.000Z (4 months ago)
- Last Synced: 2025-02-26T05:55:48.628Z (3 months ago)
- Topics: javascript, js, markdown, markdown-converter, markdown-lang, markdown-language, markdown-parser, markdown-previewer, markdown-to-html, markdown-viewer, md, nodejs
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Markdown to HTML Converter
A simple CLI tool for converting Markdown content to HTML, built with Node.js.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/BaseMax/markdown-to-html-converter
cd markdown-to-html-converter
```2. Install dependencies:
```bash
npm install
```3. Make the CLI executable:
```bash
chmod +x index.js
```4. Link the tool globally:
```bash
npm link
```## Usage
```bash
Usage:
markdown-to-html [options]Options:
-i, --input Path to the input Markdown file (optional if using stdin)
-o, --output Path to the output HTML file (optional)
-h, --help Show this help messageExamples:
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:
```bash
markdown-to-html -i input.md -o output.html
```2. Convert Markdown from standard input:
```bash
cat input.md | markdown-to-html
```3. Print the converted HTML to the console:
```bash
markdown-to-html -i input.md
```## License
MIT
(c) Copyright 2025, Max Base