{"id":18522,"library":"markdown-cli","title":"markdown-cli","description":"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.","status":"maintenance","version":"1.6.0","language":"javascript","source_language":"en","source_url":"https://github.com/cilice/markdown-cli","tags":["javascript","md","markdown","cli","file","terminal"],"install":[{"cmd":"npm install markdown-cli","lang":"bash","label":"npm"},{"cmd":"yarn add markdown-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add markdown-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Syntax highlights JavaScript code with ANSI colors","package":"cardinal","optional":false},{"reason":"Terminal string styling","package":"chalk","optional":false},{"reason":"Pretty unicode tables for CLI","package":"cli-table","optional":false},{"reason":"Get stdin as a string or buffer","package":"get-stdin","optional":false},{"reason":"Indent each line in a string","package":"indent-string","optional":false},{"reason":"Markdown parser","package":"marked","optional":false},{"reason":"CLI app helper","package":"meow","optional":false},{"reason":"Emoji support","package":"node-emoji","optional":false},{"reason":"Update notifications","package":"update-notifier","optional":false},{"reason":"Wordwrap with ANSI escape codes","package":"wrap-ansi","optional":false}],"imports":[{"note":"CLI tool used via command line, not imported programmatically.","symbol":"default","correct":"npm i -g markdown-cli"}],"quickstart":{"code":"echo '# Hello World' > test.md\nmarkdown-cli test.md\n# Or pipe stdin\necho '## Subheading' | markdown-cli","lang":"javascript","description":"Shows basic usage: rendering a Markdown file and piping content via stdin."},"warnings":[{"fix":"Consider alternatives like mdcat or terminal-markdown","message":"Package has not been updated since 2016, with dependencies using deprecated APIs.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use npx markdown-cli for one-off use or install globally with -g","message":"Requires global installation to use as CLI; local install may not add to PATH.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Check rendered output for compatibility.","message":"Dependency marked uses older API; output may differ from other Markdown renderers.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g markdown-cli' and ensure npm global bin is in PATH.","cause":"Package not installed globally or not in PATH","error":"bash: markdown-cli: command not found"},{"fix":"Run 'npm install markdown-cli' in the project directory (or globally with --global).","cause":"Missing dependencies when running without full install","error":"Error: Cannot find module 'cardinal'"},{"fix":"Use an older version of indent-string (^2.0.0) or pin markdown-cli@1.6.0.","cause":"Version mismatch with indent-string dependency (API changed in newer versions)","error":"TypeError: IndentString is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}