Registry / http-networking / markdown-cli

markdown-cli

JSON →
library1.6.0jsnpmunverified

markdown-cli is a command-line tool that renders Markdown files to the terminal with syntax highlighting, tables, emoji, and ANSI colors. Version 1.6.0, last updated in 2016, with no recent releases. It wraps marked for parsing and uses cardinal for JS code highlighting, cli-table for tables, and node-emoji for emoji. No TypeScript support or active maintenance. Suitable for quick Markdown previews in the terminal but not recommended for new projects.

npm install markdown-cli
INSTALL
IMPORT
SIG · MARKDOWN-CLI
M
markdown-cli
http-networkingjavascriptv1.6.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
npm i -g markdown-cli
CLI tool used via command line, not imported programmatically.

Shows basic usage: rendering a Markdown file and piping content via stdin.

echo '# Hello World' > test.md markdown-cli test.md # Or pipe stdin echo '## Subheading' | markdown-cli
markdown-cli --version
Debug
Known issues
deprecatedPackage has not been updated since 2016, with dependencies using deprecated APIs.
fix
Consider alternatives like mdcat or terminal-markdown
affects: >=1.0.0
gotchaRequires global installation to use as CLI; local install may not add to PATH.
fix
Use npx markdown-cli for one-off use or install globally with -g
affects: >=1.0.0
gotchaDependency marked uses older API; output may differ from other Markdown renderers.
fix
Check rendered output for compatibility.
affects: >=1.0.0
Errors
Common errors & fixes
bash: markdown-cli: command not found
Package not installed globally or not in PATH
fix
Run 'npm install -g markdown-cli' and ensure npm global bin is in PATH.
Error: Cannot find module 'cardinal'
Missing dependencies when running without full install
fix
Run 'npm install markdown-cli' in the project directory (or globally with --global).
TypeError: IndentString is not a function
Version mismatch with indent-string dependency (API changed in newer versions)
fix
Use an older version of indent-string (^2.0.0) or pin markdown-cli@1.6.0.
Upgrade
Version history
1.6.0latest on npm
Audit
Dependencies
cardinalrequiredSyntax highlights JavaScript code with ANSI colors
chalkrequiredTerminal string styling
cli-tablerequiredPretty unicode tables for CLI
get-stdinrequiredGet stdin as a string or buffer
indent-stringrequiredIndent each line in a string
markedrequiredMarkdown parser
meowrequiredCLI app helper
node-emojirequiredEmoji support
update-notifierrequiredUpdate notifications
wrap-ansirequiredWordwrap with ANSI escape codes
Agent activity
8 hits · last 30 days
node
8
Resources
markdown-cli — npm install markdown-cli · libregistry