https://github.com/salimov333/markdown-to-html-converter
This project provides a command-line interface (CLI) tool for converting Markdown files to HTML using Node.js.
https://github.com/salimov333/markdown-to-html-converter
cli-app commanderjs converter-app javascript marked-js nodejs
Last synced: 3 months ago
JSON representation
This project provides a command-line interface (CLI) tool for converting Markdown files to HTML using Node.js.
- Host: GitHub
- URL: https://github.com/salimov333/markdown-to-html-converter
- Owner: salimov333
- Created: 2024-06-30T11:03:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T11:13:26.000Z (about 2 years ago)
- Last Synced: 2025-06-29T13:40:56.956Z (about 1 year ago)
- Topics: cli-app, commanderjs, converter-app, javascript, marked-js, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Markdown to HTML Converter
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.
## Features
- Converts Markdown files to HTML.
- Simple command-line interface.
- Provides usage information and version details.
## Installation
1. Ensure you have [Node.js](https://nodejs.org/) installed.
2. Clone this repository.
3. Install the required dependencies:
```sh
npm install
```
## Usage
To use the CLI tool, run the following command:
```sh
node converter.js
```
### Arguments
- ``: Path to the input Markdown file.
- ``: Path to the output HTML file.
### Example
```sh
node converter.js example.md example.html
```
This command will convert the `example.md` Markdown file to an `example.html` HTML file.
## Help and Version Information
You can view the help information and version details using the following commands:
```sh
node converter.js --help
node converter.js --version
```
## License
This project is licensed under the MIT License.