JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q54712F
  • License MIT

Output Markdown using console.log for CLI

Package Exports

  • log-md

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (log-md) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

log-md npm

Output Markdown using console.log for CLI

Installation

npm install log-md

Usage

Outputs the message in the image above

import {log} from 'log-md'

log(`
  # log-md

  This is a ~~test~~ file including some key features of
  [log-md](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')
  \`\`\`

  ## Install

  See \`README.md\`

  Like it? Give it a ⭐️ (yes emojis work!)
`)

API

log(message, gutter?)

message

Type: string

The markdown message you want to parse.

gutter

Type: boolean
Default: false

Adds a line-break on top and botton of your messages.

License

MIT (c) Cezar Augusto.