A CLI tool to format markdown tables in files, built on top of markdown-table-prettify. Version 1.7.0 requires Node >=18.0.0. It offers both formatting and check-only modes, supports glob patterns, and allows custom column padding. It is designed for CI integration and is actively maintained with regular releases.
npm install markdown-table-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows CLI usage for formatting and checking markdown tables, plus programmatic import in ESM.
Upgrade Node to >=18.0.0 and use import instead of require.
Use -p or --column-padding instead of --columnpadding.
Use --check only for validation; run without --check to actually format.
Use quotes: markdown-table-formatter "**/*.md"
Run: npm install -g markdown-table-formatter, or use npx: npx markdown-table-formatter
Add "type": "module" to package.json or use .mjs extension.
Upgrade Node.js to 18 or later.