# node-md-to-html-demo
**Repository Path**: leopen/node-md-to-html-demo
## Basic Information
- **Project Name**: node-md-to-html-demo
- **Description**: 尝试使用node读取文件并转为html文件
- **Primary Language**: TypeScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-01-04
- **Last Updated**: 2022-05-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# NODE-MD-TO-HTML-DEMO
read a `.md` file and covert to a `.html` file
## install
```bash
# clone
$ git clone https://gitee.com/leopen/node-md-to-html-demo.git
# install packages
$ yarn
```
## run
```bash
# run main.ts
$ node_modules/.bin/ts-node src/main.ts
```
if you run it successfully, a file named `test.html` will be generated at folder `output`
## tips
you can modify the content of `/md/test.md` to check if `/output/test.html` has changed after you run `main.ts`