A CLI tool (1.3.6) that generates Slate-compatible Markdown documentation from a PostgreSQL database schema. It connects to a Postgres instance, inspects tables, columns, types, constraints, and comments, and produces a single Markdown file suitable for tools like Shins or Slate. Offers options for host, port, database, output file, locale, and object ignore patterns. Differentiated by its direct extraction from live database metadata and support for inherited tables and custom types.
npm install postgres-markdownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This shows how to programmatically run postgres-markdown as a CLI from Node.js, passing database credentials via environment variables.
Use environment variable PGPASSWORD and pass via -W with value from process.env; consider using pgpass file instead.
Specify -l en for English locale.
No immediate fix; input parsing works but may have edge cases with complex arguments.
Use import syntax or dynamic import().
Ensure ignore patterns are simple substrings.
Specify a different port with -p flag.
Run postgres-markdown from a different directory without symlink loops.
Install with 'npm install -g postgres-markdown' or use npx.