UNPKG

cli-markdown

Version:
72 lines (44 loc) 1.61 kB
Welcome to cli-markdown === ![Version](https://img.shields.io/github/package-json/v/grigorii-horos/cli-markdown.svg) [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/grigorii-horos/cli-markdown#readme) [![Maintenance](https://img.shields.io/maintenance/yes/2022.svg)](https://github.com/grigorii-horos/cli-markdown/graphs/commit-activity) [![License: GPL-3.0](https://img.shields.io/github/license/grigorii-horos/cli-markdown.svg)](https://github.com/grigorii-horos/cli-markdown/blob/master/LICENSE) ![Downloads](https://img.shields.io/npm/dw/cli-markdown.svg) > Renderer Markdown in the Terminal. > Supports pretty tables and syntax highlighting ## Install ```sh npm i -g cli-markdown ``` ## Example ```sh md demo.md ``` This will produce the following: ![Screenshot of cli-markdown](./images/1.png) <!-- ![Screenshot of cli-markdown](./images/2.png) --> ## Usage as module ```sh npm i cli-markdown ``` ```js const cliMd = require('cli-markdown'); const md = '# Hello World' console.log(cliMd(md)); ``` ## Run tests ```sh npm run test ``` ## Author 👤**Grigorii Horos** * Github: [@horosgrisa](https://github.com/horosgrisa) ## Contributing Contributions, issues and feature requests are welcome! Feel free to check [issues page](https://github.com/horosgrisa/cli-markdown/issues). ## Show your support Give a ⭐️ if this project helped you! ## License Copyright © 2019 [Grigorii Horos](https://github.com/horosgrisa). This project is [GPL-3.0-or-later](https://github.com/horosgrisa/cli-markdown/blob/master/LICENSE) licensed.