Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/voxpelli/markdown-or-chalk

Prints through a single interface as Chalk enhanced CLI output or as Markdown
https://github.com/voxpelli/markdown-or-chalk

chalk cli markdown

Last synced: 20 days ago
JSON representation

Prints through a single interface as Chalk enhanced CLI output or as Markdown

Awesome Lists containing this project

README

        

# Markdown or Chalk

Prints through a single interface as Chalk enhanced CLI output or as Markdown

[![npm version](https://img.shields.io/npm/v/markdown-or-chalk.svg?style=flat)](https://www.npmjs.com/package/markdown-or-chalk)
[![npm downloads](https://img.shields.io/npm/dm/markdown-or-chalk.svg?style=flat)](https://www.npmjs.com/package/markdown-or-chalk)
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard)
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js)
[![Follow @[email protected]](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)

## Usage

### Simple

```javascript
import { MarkdownOrChalk } from 'markdown-or-chalk';

const printAsMarkdown = true;
const format = new MarkdownOrChalk(printAsMarkdown);

format.header('Wow');
```

## Exports

* `MarkdownOrChalk`
* `mdastLinkify`
* `mdastListHelper`
* `mdastTableHelper`

## Used by

* [`@voxpelli/pretty-ts-errors-cli`](https://github.com/voxpelli/pretty-ts-errors-cli)
* [`compare-eslint-configs`](https://github.com/voxpelli/compare-eslint-configs)

## See also

* [`chalk`](https://www.npmjs.com/package/chalk)
* [`mdast`](https://www.npmjs.com/package/mdast)
* [`mdast-util-to-markdown`](https://www.npmjs.com/package/mdast-util-to-markdown)