log-md
Version:
Output Markdown using console.log for CLI
70 lines (43 loc) • 1.06 kB
Markdown
[//img.shields.io/npm/v/log-md.svg
[ ]: https://npmjs.org/package/log-md
> Output Markdown using console.log for CLI
<p align="center">
<img src="./result.png" width="600">
</p>
```
npm install log-md
```
Outputs the message in the image above
```js
import {log} from 'log-md'
log(`
This is a ~~test~~ file including some key features of
[ ](https://github.com/cezaraugusto/log-md):
* Supports lists
* Inline code like \`path.join()\`
* Bold like **BOLD** and __italic__ too.
Also supports multi-line code blocks:
\`\`\`
const path = require('path')
path.join('bla', 'bla')
\`\`\`
See \`README.md\`
Like it? Give it a ⭐️ (yes emojis work!)
`)
```
Type: `string`
The markdown message you want to parse.
Type: `boolean`\
Default: `false`
Adds a line-break on top and botton of your messages.
MIT (c) Cezar Augusto.
]: https: